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

Unified Diff: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h

Issue 2739533003: Revert of Make cc/paint have concrete types (Closed)
Patch Set: Created 3 years, 9 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: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
index 7d77d0fa8ac4da16eb3adb0e7f32345ff09963c8..20b09b98396a4165064372d3df86d29d38d5adda 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
@@ -178,8 +178,6 @@
void setLoggerForTesting(std::unique_ptr<Logger>);
private:
- void ResetSurface();
-
#if USE_IOSURFACE_FOR_2D_CANVAS
// All information associated with a CHROMIUM image.
struct ImageInfo;
@@ -207,7 +205,7 @@
void flushRecordingOnly();
void reportSurfaceCreationFailure();
- SkSurface* getOrCreateSurface(AccelerationHint = PreferAcceleration);
+ PaintSurface* getOrCreateSurface(AccelerationHint = PreferAcceleration);
bool shouldAccelerate(AccelerationHint) const;
// Returns the GL filter associated with |m_filterQuality|.
@@ -244,8 +242,7 @@
void resetSkiaTextureBinding();
std::unique_ptr<PaintRecorder> m_recorder;
- sk_sp<SkSurface> m_surface;
- std::unique_ptr<PaintCanvas> m_surfacePaintCanvas;
+ sk_sp<PaintSurface> m_surface;
sk_sp<SkImage> m_hibernationImage;
int m_initialSurfaceSaveCount;
std::unique_ptr<WebExternalTextureLayer> m_layer;

Powered by Google App Engine
This is Rietveld 408576698