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

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

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

Powered by Google App Engine
This is Rietveld 408576698