diff options
author | 2016-10-25 15:21:50 -0700 | |
---|---|---|
committer | 2016-10-26 14:01:09 -0700 | |
commit | 2a38c42e921451abebb4ee5f5ecd738f1b6b04ed (patch) | |
tree | 2074f10be351fa19cfd4fdb80a4e24ed649782ca /libs/hwui/Layer.cpp | |
parent | 98fa4f9e7b33a3004ce9142c9acd4300391b9a0e (diff) |
Add target to texture
Test: refactoring cl.
bug:32413624
Change-Id: I94b1c31cd4e0712dfcfd7777a0012424c1bf0dca
Diffstat (limited to 'libs/hwui/Layer.cpp')
-rw-r--r-- | libs/hwui/Layer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/hwui/Layer.cpp b/libs/hwui/Layer.cpp index 4e12bcef8a4f..88817efa80ac 100644 --- a/libs/hwui/Layer.cpp +++ b/libs/hwui/Layer.cpp @@ -41,7 +41,6 @@ Layer::Layer(RenderState& renderState, uint32_t layerWidth, uint32_t layerHeight // TODO: This is a violation of Android's typical ref counting, but it // preserves the old inc/dec ref locations. This should be changed... incStrong(nullptr); - renderTarget = GL_NONE; // see DeferredLayerUpdater::updateLayer() texture.mWidth = layerWidth; texture.mHeight = layerHeight; renderState.registerLayer(this); @@ -66,7 +65,7 @@ void Layer::setColorFilter(SkColorFilter* filter) { void Layer::bindTexture() const { if (texture.mId) { - caches.textureState().bindTexture(renderTarget, texture.mId); + caches.textureState().bindTexture(texture.target(), texture.mId); } } |