Class ShadowNativeHardwareRenderer

    • Constructor Detail

      • ShadowNativeHardwareRenderer

        public ShadowNativeHardwareRenderer()
    • Method Detail

      • disableVsync

        @Implementation
        protected static void disableVsync()
      • preload

        @Implementation
        protected static void preload()
      • isWebViewOverlaysEnabled

        @Implementation(minSdk=31)
        protected static boolean isWebViewOverlaysEnabled()
      • setupShadersDiskCache

        @Implementation
        protected static void setupShadersDiskCache​(String cacheFile,
                                                    String skiaCacheFile)
      • nRotateProcessStatsBuffer

        @Implementation
        protected static void nRotateProcessStatsBuffer()
      • nSetProcessStatsBuffer

        @Implementation
        protected static void nSetProcessStatsBuffer​(int fd)
      • nGetRenderThreadTid

        @Implementation
        protected static int nGetRenderThreadTid​(long nativeProxy)
      • nCreateRootRenderNode

        @Implementation
        protected static long nCreateRootRenderNode()
      • nCreateProxy

        @Implementation(minSdk=31)
        protected static long nCreateProxy​(boolean translucent,
                                           long rootRenderNode)
      • nCreateProxy

        @Implementation(minSdk=30,
                        maxSdk=30)
        protected static long nCreateProxy​(boolean translucent,
                                           boolean isWideGamut,
                                           long rootRenderNode)
      • nCreateProxy

        @Implementation(minSdk=29,
                        maxSdk=29)
        protected static Object nCreateProxy​(Object translucent,
                                             Object rootRenderNode)
      • nDeleteProxy

        @Implementation
        protected static void nDeleteProxy​(long nativeProxy)
      • nLoadSystemProperties

        @Implementation
        protected static boolean nLoadSystemProperties​(long nativeProxy)
      • nSetName

        @Implementation
        protected static void nSetName​(long nativeProxy,
                                       String name)
      • nSetSurface

        @Implementation(minSdk=30)
        protected static void nSetSurface​(long nativeProxy,
                                          Surface window,
                                          boolean discardBuffer)
      • nSetSurfaceControl

        @Implementation(minSdk=31)
        protected static void nSetSurfaceControl​(long nativeProxy,
                                                 long nativeSurfaceControl)
      • nPause

        @Implementation
        protected static boolean nPause​(long nativeProxy)
      • nSetStopped

        @Implementation
        protected static void nSetStopped​(long nativeProxy,
                                          boolean stopped)
      • nSetLightGeometry

        @Implementation
        protected static void nSetLightGeometry​(long nativeProxy,
                                                float lightX,
                                                float lightY,
                                                float lightZ,
                                                float lightRadius)
      • nSetLightAlpha

        @Implementation
        protected static void nSetLightAlpha​(long nativeProxy,
                                             float ambientShadowAlpha,
                                             float spotShadowAlpha)
      • nSetOpaque

        @Implementation
        protected static void nSetOpaque​(long nativeProxy,
                                         boolean opaque)
      • nSetColorMode

        @Implementation(minSdk=31)
        protected static Object nSetColorMode​(long nativeProxy,
                                              int colorMode)
      • nSetSdrWhitePoint

        @Implementation(minSdk=31)
        protected static void nSetSdrWhitePoint​(long nativeProxy,
                                                float whitePoint)
      • nSetIsHighEndGfx

        @Implementation(minSdk=31)
        protected static void nSetIsHighEndGfx​(boolean isHighEndGfx)
      • nSyncAndDrawFrame

        @Implementation
        protected static int nSyncAndDrawFrame​(long nativeProxy,
                                               long[] frameInfo,
                                               int size)
      • nDestroy

        @Implementation
        protected static void nDestroy​(long nativeProxy,
                                       long rootRenderNode)
      • nRegisterAnimatingRenderNode

        @Implementation
        protected static void nRegisterAnimatingRenderNode​(long rootRenderNode,
                                                           long animatingNode)
      • nRegisterVectorDrawableAnimator

        @Implementation
        protected static void nRegisterVectorDrawableAnimator​(long rootRenderNode,
                                                              long animator)
      • nCreateTextureLayer

        @Implementation
        protected static long nCreateTextureLayer​(long nativeProxy)
      • nBuildLayer

        @Implementation
        protected static void nBuildLayer​(long nativeProxy,
                                          long node)
      • nCopyLayerInto

        @Implementation
        protected static boolean nCopyLayerInto​(long nativeProxy,
                                                long layer,
                                                long bitmapHandle)
      • nPushLayerUpdate

        @Implementation
        protected static void nPushLayerUpdate​(long nativeProxy,
                                               long layer)
      • nCancelLayerUpdate

        @Implementation
        protected static void nCancelLayerUpdate​(long nativeProxy,
                                                 long layer)
      • nDetachSurfaceTexture

        @Implementation
        protected static void nDetachSurfaceTexture​(long nativeProxy,
                                                    long layer)
      • nDestroyHardwareResources

        @Implementation
        protected static void nDestroyHardwareResources​(long nativeProxy)
      • nTrimMemory

        @Implementation
        protected static void nTrimMemory​(int level)
      • nOverrideProperty

        @Implementation
        protected static void nOverrideProperty​(String name,
                                                String value)
      • nFence

        @Implementation
        protected static void nFence​(long nativeProxy)
      • nStopDrawing

        @Implementation
        protected static void nStopDrawing​(long nativeProxy)
      • nNotifyFramePending

        @Implementation
        protected static void nNotifyFramePending​(long nativeProxy)
      • nDumpProfileInfo

        @Implementation
        protected static void nDumpProfileInfo​(long nativeProxy,
                                               FileDescriptor fd,
                                               int dumpFlags)
      • nAddRenderNode

        @Implementation
        protected static void nAddRenderNode​(long nativeProxy,
                                             long rootRenderNode,
                                             boolean placeFront)
      • nRemoveRenderNode

        @Implementation
        protected static void nRemoveRenderNode​(long nativeProxy,
                                                long rootRenderNode)
      • nDrawRenderNode

        @Implementation
        protected static void nDrawRenderNode​(long nativeProxy,
                                              long rootRenderNode)
      • nSetContentDrawBounds

        @Implementation
        protected static void nSetContentDrawBounds​(long nativeProxy,
                                                    int left,
                                                    int top,
                                                    int right,
                                                    int bottom)
      • nSetASurfaceTransactionCallback

        @Implementation(minSdk=31)
        protected static void nSetASurfaceTransactionCallback​(Object nativeProxy,
                                                              Object callback)
      • nSetPrepareSurfaceControlForWebviewCallback

        @Implementation(minSdk=31)
        protected static void nSetPrepareSurfaceControlForWebviewCallback​(Object nativeProxy,
                                                                          Object callback)
      • nAddObserver

        @Implementation(minSdk=30)
        protected static void nAddObserver​(long nativeProxy,
                                           long nativeObserver)
      • nRemoveObserver

        @Implementation(minSdk=30)
        protected static void nRemoveObserver​(long nativeProxy,
                                              long nativeObserver)
      • nCopySurfaceInto

        @Implementation(maxSdk=33)
        protected static int nCopySurfaceInto​(Surface surface,
                                              int srcLeft,
                                              int srcTop,
                                              int srcRight,
                                              int srcBottom,
                                              long bitmapHandle)
      • nCreateHardwareBitmap

        @Implementation
        protected static Bitmap nCreateHardwareBitmap​(long renderNode,
                                                      int width,
                                                      int height)
      • nSetHighContrastText

        @Implementation
        protected static void nSetHighContrastText​(boolean enabled)
      • nHackySetRTAnimationsEnabled

        @Implementation(minSdk=29,
                        maxSdk=31)
        protected static void nHackySetRTAnimationsEnabled​(boolean enabled)
      • nSetDebuggingEnabled

        @Implementation
        protected static void nSetDebuggingEnabled​(boolean enabled)
      • nSetIsolatedProcess

        @Implementation
        protected static void nSetIsolatedProcess​(boolean enabled)
      • nSetContextPriority

        @Implementation
        protected static void nSetContextPriority​(int priority)
      • nAllocateBuffers

        @Implementation
        protected static void nAllocateBuffers​(long nativeProxy)
      • nSetForceDark

        @Implementation
        protected static void nSetForceDark​(long nativeProxy,
                                            boolean enabled)
      • nSetDisplayDensityDpi

        @Implementation(minSdk=31)
        protected static void nSetDisplayDensityDpi​(int densityDpi)
      • nInitDisplayInfo

        @Implementation(minSdk=31,
                        maxSdk=33)
        protected static void nInitDisplayInfo​(int width,
                                               int height,
                                               float refreshRate,
                                               int wideColorDataspace,
                                               long appVsyncOffsetNanos,
                                               long presentationDeadlineNanos)
      • nInitDisplayInfo

        @Implementation(minSdk=10000)
        protected static void nInitDisplayInfo​(int width,
                                               int height,
                                               float refreshRate,
                                               int wideColorDataspace,
                                               long appVsyncOffsetNanos,
                                               long presentationDeadlineNanos,
                                               boolean supportsFp16ForHdr,
                                               boolean nInitDisplayInfo)