commit | 417ed6d4337e5409d52f58cc93677c8715193f32 | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Tue Mar 22 16:01:08 2016 -0700 |
committer | John Reck <jreck@google.com> | Wed Mar 23 07:59:10 2016 -0700 |
tree | e209754dcabdc52f6cae49fa78b42fd9e7241801 | |
parent | df1e2b1457690ccbd1302078cedafbfbb8918265 [diff] [blame] |
Fix missing first frame Bug: 26776366 Change-Id: I46258c0ff35fdefe5c9f2ee610c904b2dbe8c5d9
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h index e00ae66..1e5498b 100644 --- a/libs/hwui/Layer.h +++ b/libs/hwui/Layer.h
@@ -216,6 +216,10 @@ 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); }