Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1877)

Unified Diff: Source/platform/graphics/Canvas2DLayerBridge.cpp

Issue 1195963006: Removing getBackingTextureImage from ImageBufferSurface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix unit test Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/graphics/Canvas2DLayerBridge.cpp
diff --git a/Source/platform/graphics/Canvas2DLayerBridge.cpp b/Source/platform/graphics/Canvas2DLayerBridge.cpp
index 1b2abc1ea9a423408b573c85161671c7816b1119..f5317dab82a32a119a495a017a2d9e726e42187f 100644
--- a/Source/platform/graphics/Canvas2DLayerBridge.cpp
+++ b/Source/platform/graphics/Canvas2DLayerBridge.cpp
@@ -513,18 +513,10 @@ void Canvas2DLayerBridge::finalizeFrame(const FloatRect &dirtyRect)
m_didRecordDrawCommand = true;
}
-PassRefPtr<SkImage> Canvas2DLayerBridge::getBackingTextureImage()
+PassRefPtr<SkImage> Canvas2DLayerBridge::newImageSnapshot()
{
if (!checkSurfaceValid())
return nullptr;
-
- context()->flush();
-
- return adoptRef(m_canvas->newImageSnapshot());
-}
-
-PassRefPtr<SkImage> Canvas2DLayerBridge::newImageSnapshot()
-{
return adoptRef(m_canvas->newImageSnapshot());
}
« no previous file with comments | « Source/platform/graphics/Canvas2DLayerBridge.h ('k') | Source/platform/graphics/Canvas2DLayerBridgeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698