From 11cb642756093a4af901b1525375b1eb2b5c3e2b Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Fri, 21 Sep 2012 00:39:43 -0700 Subject: Update layers in a single batch at the beginning of a frame Bug #7186819 Change-Id: Ice5926dfedfb3be3a3064e65008dafa2852407da --- libs/hwui/LayerRenderer.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libs/hwui/LayerRenderer.h') diff --git a/libs/hwui/LayerRenderer.h b/libs/hwui/LayerRenderer.h index 8d42f7fb5892..392f8634c08c 100644 --- a/libs/hwui/LayerRenderer.h +++ b/libs/hwui/LayerRenderer.h @@ -51,10 +51,6 @@ public: virtual int prepareDirty(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); @@ -64,6 +60,12 @@ public: ANDROID_API static void destroyLayerDeferred(Layer* layer); ANDROID_API static bool copyLayer(Layer* layer, SkBitmap* bitmap); +protected: + virtual bool hasLayer(); + virtual Region* getRegion(); + virtual GLint getTargetFbo(); + virtual bool suppressErrorChecks(); + private: void generateMesh(); -- cgit v1.2.3-59-g8ed1b