| 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 faf0123e6c9e778224adba5d013fff0ebe30224a..0472ddb68178f642696e6fdbed11aa57d4a39141 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
|
| @@ -36,6 +36,7 @@
|
| #include "third_party/khronos/GLES2/gl2.h"
|
| #include "third_party/skia/include/core/SkRefCnt.h"
|
| #include "third_party/skia/include/core/SkSurface.h"
|
| +#include "skia/ext/cdl_common.h"
|
| #include "wtf/Allocator.h"
|
| #include "wtf/Deque.h"
|
| #include "wtf/RefCounted.h"
|
| @@ -46,7 +47,6 @@
|
|
|
| class SkImage;
|
| struct SkImageInfo;
|
| -class SkPictureRecorder;
|
|
|
| namespace gpu {
|
| namespace gles2 {
|
| @@ -114,7 +114,7 @@ class PLATFORM_EXPORT Canvas2DLayerBridge
|
| void willWritePixels();
|
| void willOverwriteAllPixels();
|
| void willOverwriteCanvas();
|
| - SkCanvas* canvas();
|
| + CdlCanvas* canvas();
|
| void disableDeferral(DisableDeferralReason);
|
| bool checkSurfaceValid();
|
| bool restoreSurface();
|
| @@ -207,7 +207,7 @@ class PLATFORM_EXPORT Canvas2DLayerBridge
|
| void willProcessTask() override;
|
| void didProcessTask() override;
|
|
|
| - SkSurface* getOrCreateSurface(AccelerationHint = PreferAcceleration);
|
| + CdlSurface* getOrCreateSurface(AccelerationHint = PreferAcceleration);
|
| bool shouldAccelerate(AccelerationHint) const;
|
|
|
| // Returns the GL filter associated with |m_filterQuality|.
|
| @@ -243,8 +243,8 @@ class PLATFORM_EXPORT Canvas2DLayerBridge
|
| // changing texture bindings.
|
| void resetSkiaTextureBinding();
|
|
|
| - std::unique_ptr<SkPictureRecorder> m_recorder;
|
| - sk_sp<SkSurface> m_surface;
|
| + std::unique_ptr<CdlPictureRecorder> m_recorder;
|
| + sk_sp<CdlSurface> m_surface;
|
| sk_sp<SkImage> m_hibernationImage;
|
| int m_initialSurfaceSaveCount;
|
| std::unique_ptr<WebExternalTextureLayer> m_layer;
|
|
|