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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 11 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/gpu/AcceleratedImageBufferSurface.h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h b/third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h
index c6df647c51e22349717739a4943bd61633c0792a..7f388670a7de290478dcebe44b219cdd080bb643 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h
@@ -32,6 +32,8 @@
#define AcceleratedImageBufferSurface_h
#include "platform/graphics/ImageBufferSurface.h"
+#include "platform/graphics/paint/PaintCanvas.h"
+#include "platform/graphics/paint/PaintSurface.h"
#include "public/platform/WebGraphicsContext3DProvider.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "third_party/skia/include/core/SkSurface.h"
@@ -51,7 +53,7 @@ class PLATFORM_EXPORT AcceleratedImageBufferSurface
SkColorType = kN32_SkColorType);
~AcceleratedImageBufferSurface() override {}
- SkCanvas* canvas() override {
+ PaintCanvas* canvas() override {
return m_surface ? m_surface->getCanvas() : nullptr;
}
bool isValid() const override;
@@ -61,7 +63,7 @@ class PLATFORM_EXPORT AcceleratedImageBufferSurface
private:
unsigned m_contextId;
- sk_sp<SkSurface> m_surface; // Uses m_contextProvider.
+ sk_sp<PaintSurface> m_surface; // Uses m_contextProvider.
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698