summaryrefslogtreecommitdiffstats
path: root/libs/hwui/LayerRenderer.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-09-21 00:39:43 -0700
committerRomain Guy <romainguy@google.com>2012-09-21 00:39:43 -0700
commit11cb642756093a4af901b1525375b1eb2b5c3e2b (patch)
treeb412ad763bb1cc240c65c7545a208e4e709c0b30 /libs/hwui/LayerRenderer.h
parent3e87eafc7d1aef95801f1758bb78da8b2f960a75 (diff)
downloadframeworks_base-11cb642756093a4af901b1525375b1eb2b5c3e2b.zip
frameworks_base-11cb642756093a4af901b1525375b1eb2b5c3e2b.tar.gz
frameworks_base-11cb642756093a4af901b1525375b1eb2b5c3e2b.tar.bz2
Update layers in a single batch at the beginning of a frame
Bug #7186819 Change-Id: Ice5926dfedfb3be3a3064e65008dafa2852407da
Diffstat (limited to 'libs/hwui/LayerRenderer.h')
-rw-r--r--libs/hwui/LayerRenderer.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/hwui/LayerRenderer.h b/libs/hwui/LayerRenderer.h
index 8d42f7f..392f863 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();