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

Unified Diff: third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp

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/UnacceleratedImageBufferSurface.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp b/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp
index d4b245403cb3186dd02bb87ab8e624b3e2b36b9d..72474a405f2dd510f2679bf1ea95c4cbc1086383 100644
--- a/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp
+++ b/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp
@@ -31,11 +31,8 @@
#include "platform/graphics/UnacceleratedImageBufferSurface.h"
#include "platform/graphics/skia/SkiaUtils.h"
-#include "third_party/skia/include/core/SkSurface.h"
#include "wtf/PassRefPtr.h"
-class SkCanvas;
-
namespace blink {
UnacceleratedImageBufferSurface::UnacceleratedImageBufferSurface(
@@ -50,8 +47,8 @@ UnacceleratedImageBufferSurface::UnacceleratedImageBufferSurface(
SkImageInfo info = SkImageInfo::Make(size.width(), size.height(), colorType,
alphaType, colorSpace);
SkSurfaceProps disableLCDProps(0, kUnknown_SkPixelGeometry);
- m_surface =
- SkSurface::MakeRaster(info, Opaque == opacityMode ? 0 : &disableLCDProps);
+ m_surface = PaintSurface::MakeRaster(
+ info, Opaque == opacityMode ? 0 : &disableLCDProps);
// Always save an initial frame, to support resetting the top level matrix
// and clip.
@@ -66,7 +63,7 @@ UnacceleratedImageBufferSurface::UnacceleratedImageBufferSurface(
UnacceleratedImageBufferSurface::~UnacceleratedImageBufferSurface() {}
-SkCanvas* UnacceleratedImageBufferSurface::canvas() {
+PaintCanvas* UnacceleratedImageBufferSurface::canvas() {
return m_surface->getCanvas();
}

Powered by Google App Engine
This is Rietveld 408576698