Index: Source/platform/graphics/Canvas2DLayerBridge.cpp |
diff --git a/Source/platform/graphics/Canvas2DLayerBridge.cpp b/Source/platform/graphics/Canvas2DLayerBridge.cpp |
index ac1f0c827804f1828cd298688584699e96edc524..bc6990c1e4cf1d7d4248f506c6de6484e6c52cfd 100644 |
--- a/Source/platform/graphics/Canvas2DLayerBridge.cpp |
+++ b/Source/platform/graphics/Canvas2DLayerBridge.cpp |
@@ -224,7 +224,6 @@ void Canvas2DLayerBridge::prepareForDraw() |
} |
return; |
} |
- context()->makeContextCurrent(); |
} |
void Canvas2DLayerBridge::storageAllocatedForRecordingChanged(size_t bytesAllocated) |
@@ -410,7 +409,6 @@ bool Canvas2DLayerBridge::prepareMailbox(WebExternalTextureMailbox* outMailbox, |
// Release to skia textures that were previouosly released by the |
// compositor. We do this before acquiring the next snapshot in |
// order to cap maximum gpu memory consumption. |
- webContext->makeContextCurrent(); |
flush(); |
RefPtr<SkImage> image = adoptRef(m_canvas->newImageSnapshot()); |