summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderProxy.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2018-05-07 08:12:07 -0700
committerJohn Reck <jreck@google.com>2018-05-09 11:39:37 -0700
commite170fb6686c3e88cee6e32f4e3eb12fcf9bfe931 (patch)
treebf0ccbbcd2f89ccb468b216e14670451fedc3221 /libs/hwui/renderthread/RenderProxy.cpp
parent33f4f1cb1645635f8b5c369e1dddda84e0396c34 (diff)
A better HW Bitmap uploader
Move all HW bitmap upload operations off of RenderThread. Ensure EGL context outlives all upload requests Bug: 79250950 Test: builds, boots, systrace is good, CTS bitmap tests pass Change-Id: I5ace6c516d33b1afdf1a407cd8b183f6b60c22c1
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
-rw-r--r--libs/hwui/renderthread/RenderProxy.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp
index 4d1e1e8fb04b..02d0b6d4a77f 100644
--- a/libs/hwui/renderthread/RenderProxy.cpp
+++ b/libs/hwui/renderthread/RenderProxy.cpp
@@ -319,17 +319,6 @@ void RenderProxy::prepareToDraw(Bitmap& bitmap) {
}
}
-sk_sp<Bitmap> RenderProxy::allocateHardwareBitmap(SkBitmap& bitmap) {
- auto& thread = RenderThread::getInstance();
- if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaGL) {
- return skiapipeline::SkiaOpenGLPipeline::allocateHardwareBitmap(thread, bitmap);
- } else {
- return thread.queue().runSync([&]() -> auto {
- return thread.allocateHardwareBitmap(bitmap);
- });
- }
-}
-
int RenderProxy::copyGraphicBufferInto(GraphicBuffer* buffer, SkBitmap* bitmap) {
RenderThread& thread = RenderThread::getInstance();
if (gettid() == thread.getTid()) {