diff options
author | John Reck <jreck@google.com> | 2016-03-22 16:01:08 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2016-03-23 07:59:10 -0700 |
commit | 417ed6d4337e5409d52f58cc93677c8715193f32 (patch) | |
tree | e209754dcabdc52f6cae49fa78b42fd9e7241801 /libs/hwui/Layer.h | |
parent | df1e2b1457690ccbd1302078cedafbfbb8918265 (diff) |
Fix missing first frame
Bug: 26776366
Change-Id: I46258c0ff35fdefe5c9f2ee610c904b2dbe8c5d9
Diffstat (limited to 'libs/hwui/Layer.h')
-rw-r--r-- | libs/hwui/Layer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h index e00ae66997a5..1e5498bb3d21 100644 --- a/libs/hwui/Layer.h +++ b/libs/hwui/Layer.h @@ -216,6 +216,10 @@ public: this->renderTarget = renderTarget; } + inline bool isRenderable() const { + return renderTarget != GL_NONE; + } + void setWrap(GLenum wrap, bool bindTexture = false, bool force = false) { texture.setWrap(wrap, bindTexture, force, renderTarget); } |