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

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

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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 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;

Powered by Google App Engine
This is Rietveld 408576698