diff options
author | Romain Guy <romainguy@google.com> | 2012-09-25 15:49:03 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2012-09-25 15:49:03 -0700 |
commit | 8a1374946a928fcba7495c87ff6adda327fdfb9f (patch) | |
tree | ab6b1d092aec1b19751e820c3e18a10c21a40759 /libs/hwui/LayerRenderer.h | |
parent | 1ab8a08a9b85aa62045a6a78fd93859382c88b0f (diff) | |
download | frameworks_base-8a1374946a928fcba7495c87ff6adda327fdfb9f.zip frameworks_base-8a1374946a928fcba7495c87ff6adda327fdfb9f.tar.gz frameworks_base-8a1374946a928fcba7495c87ff6adda327fdfb9f.tar.bz2 |
Deleting objects on the wrong thread is a silly idea
Bug #7195815
Turns out that multi-threading is hard.
Change-Id: Ib0b4bd6dc3caea27f7ced22cbb363bb955fe58ab
Diffstat (limited to 'libs/hwui/LayerRenderer.h')
-rw-r--r-- | libs/hwui/LayerRenderer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/LayerRenderer.h b/libs/hwui/LayerRenderer.h index 392f863..acedbcc 100644 --- a/libs/hwui/LayerRenderer.h +++ b/libs/hwui/LayerRenderer.h @@ -60,6 +60,8 @@ public: ANDROID_API static void destroyLayerDeferred(Layer* layer); ANDROID_API static bool copyLayer(Layer* layer, SkBitmap* bitmap); + static void flushLayer(Layer* layer); + protected: virtual bool hasLayer(); virtual Region* getRegion(); @@ -69,8 +71,6 @@ protected: private: void generateMesh(); - static void flushLayer(Layer* layer); - Layer* mLayer; }; // class LayerRenderer |