diff options
Diffstat (limited to 'libs/hwui/LayerRenderer.h')
-rw-r--r-- | libs/hwui/LayerRenderer.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/libs/hwui/LayerRenderer.h b/libs/hwui/LayerRenderer.h index 8f3a0a3..c44abce 100644 --- a/libs/hwui/LayerRenderer.h +++ b/libs/hwui/LayerRenderer.h @@ -47,13 +47,11 @@ public: ANDROID_API LayerRenderer(Layer* layer); virtual ~LayerRenderer(); - virtual int prepareDirty(float left, float top, float right, float bottom, bool opaque); + virtual void setViewport(int width, int height); + virtual status_t prepareDirty(float left, float top, float right, float bottom, bool opaque); + virtual status_t clear(float left, float top, float right, float bottom, bool opaque); virtual void finish(); - virtual bool hasLayer(); - virtual Region* getRegion(); - virtual GLint getTargetFbo(); - ANDROID_API static Layer* createTextureLayer(bool isOpaque); ANDROID_API static Layer* createLayer(uint32_t width, uint32_t height, bool isOpaque = false); ANDROID_API static bool resizeLayer(Layer* layer, uint32_t width, uint32_t height); @@ -61,9 +59,16 @@ public: bool isOpaque, GLenum renderTarget, float* transform); ANDROID_API static void destroyLayer(Layer* layer); ANDROID_API static void destroyLayerDeferred(Layer* layer); - ANDROID_API static void flushLayer(Layer* layer); ANDROID_API static bool copyLayer(Layer* layer, SkBitmap* bitmap); + static void flushLayer(Layer* layer); + +protected: + virtual bool hasLayer(); + virtual Region* getRegion(); + virtual GLint getTargetFbo(); + virtual bool suppressErrorChecks(); + private: void generateMesh(); |