summaryrefslogtreecommitdiffstats
path: root/libs/hwui/renderthread/CanvasContext.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-11-07 22:45:33 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-07 22:45:33 +0000
commit8dda03a08603f45b3c2c90633491ce2c1fea266b (patch)
treeef89ce0a82b316b511e1a2a6419000e11d37e4bb /libs/hwui/renderthread/CanvasContext.h
parent8c1cd7e61f050afd450cb05add633e2fbe0b195a (diff)
parentca93f69c96df85bd6bc72a2a47dae6c0d5336ab2 (diff)
downloadframeworks_base-8dda03a08603f45b3c2c90633491ce2c1fea266b.zip
frameworks_base-8dda03a08603f45b3c2c90633491ce2c1fea266b.tar.gz
frameworks_base-8dda03a08603f45b3c2c90633491ce2c1fea266b.tar.bz2
am ca93f69c: Merge "Have an actual fallback if the surface is lost" into lmp-mr1-dev
* commit 'ca93f69c96df85bd6bc72a2a47dae6c0d5336ab2': Have an actual fallback if the surface is lost
Diffstat (limited to 'libs/hwui/renderthread/CanvasContext.h')
-rw-r--r--libs/hwui/renderthread/CanvasContext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.h b/libs/hwui/renderthread/CanvasContext.h
index e20564b..435244e 100644
--- a/libs/hwui/renderthread/CanvasContext.h
+++ b/libs/hwui/renderthread/CanvasContext.h
@@ -68,6 +68,8 @@ public:
bool initialize(ANativeWindow* window);
void updateSurface(ANativeWindow* window);
void pauseSurface(ANativeWindow* window);
+ bool hasSurface() { return mNativeWindow.get(); }
+
void setup(int width, int height, const Vector3& lightCenter, float lightRadius,
uint8_t ambientShadowAlpha, uint8_t spotShadowAlpha);
void setOpaque(bool opaque);