diff options
author | Derek Sollenberger <djsollen@google.com> | 2016-10-25 12:09:18 -0400 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2016-10-26 12:46:57 +0000 |
commit | daf7229047c44947b9b02ee187fe5b13f30ebd4b (patch) | |
tree | 886071f35e43c59a488073d0e039b10bc7585c85 /libs/hwui/renderthread/RenderProxy.cpp | |
parent | be9a73063c9e2dc56ee1e29cc93308d17b18eece (diff) |
Move OpenGL specific details behind renderPipeline interface.
Test: new and existing unit tests still pass.
Change-Id: I6164f30f45ebe450788ed8d949eca5af9a44e585
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp index 42da293021b9..6cb2b9cfac8f 100644 --- a/libs/hwui/renderthread/RenderProxy.cpp +++ b/libs/hwui/renderthread/RenderProxy.cpp @@ -618,10 +618,7 @@ int RenderProxy::copySurfaceInto(sp<Surface>& surface, int left, int top, } CREATE_BRIDGE2(prepareToDraw, RenderThread* thread, Bitmap* bitmap) { - if (Caches::hasInstance() && args->thread->eglManager().hasEglContext()) { - ATRACE_NAME("Bitmap#prepareToDraw task"); - Caches::getInstance().textureCache.prefetch(args->bitmap); - } + CanvasContext::prepareToDraw(*args->thread, args->bitmap); args->bitmap->unref(); args->bitmap = nullptr; return nullptr; |