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

Unified Diff: third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.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/RecordingImageBufferSurfaceTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
index f532ed74d67875cc3174b7e51375523f0e254d9c..f360378ffc42e871db8ecf21b471fd06109fcf8c 100644
--- a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
@@ -9,14 +9,14 @@
#include "platform/graphics/ImageBuffer.h"
#include "platform/graphics/ImageBufferClient.h"
#include "platform/graphics/UnacceleratedImageBufferSurface.h"
+#include "platform/graphics/paint/PaintCanvas.h"
+#include "platform/graphics/paint/PaintRecord.h"
#include "platform/testing/TestingPlatformSupport.h"
#include "public/platform/Platform.h"
#include "public/platform/WebThread.h"
#include "public/platform/WebTraceLocation.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "third_party/skia/include/core/SkCanvas.h"
-#include "third_party/skia/include/core/SkPictureRecorder.h"
#include "wtf/PtrUtil.h"
#include "wtf/RefPtr.h"
#include <memory>
@@ -53,7 +53,7 @@ class FakeImageBufferClient : public ImageBufferClient,
m_imageBuffer->finalizeFrame(dirtyRect);
ASSERT_FALSE(m_isDirty);
}
- void restoreCanvasMatrixClipStack(SkCanvas*) const override {}
+ void restoreCanvasMatrixClipStack(PaintCanvas*) const override {}
void fakeDraw() {
if (m_isDirty)
@@ -115,7 +115,7 @@ class RecordingImageBufferSurfaceTest : public Test {
public:
void testEmptyPicture() {
m_testSurface->initializeCurrentFrame();
- sk_sp<SkPicture> picture = m_testSurface->getPicture();
+ sk_sp<PaintRecord> picture = m_testSurface->getPicture();
EXPECT_TRUE((bool)picture.get());
EXPECT_EQ(1, m_fakeImageBufferClient->frameCount());
expectDisplayListEnabled(true);
@@ -202,7 +202,7 @@ class RecordingImageBufferSurfaceTest : public Test {
void testClearRect() {
m_testSurface->initializeCurrentFrame();
m_testSurface->getPicture();
- SkPaint clearPaint;
+ PaintFlags clearPaint;
clearPaint.setBlendMode(SkBlendMode::kClear);
m_imageBuffer->canvas()->drawRect(
SkRect::MakeWH(m_testSurface->size().width(),

Powered by Google App Engine
This is Rietveld 408576698