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

Unified Diff: third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp

Issue 1401363003: Rename DisplayItemList to PaintController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/core/layout/ImageQualityControllerTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp b/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
index e70a6f4b6044599f2d8f067e783cec9e7df6bfe0..41fcfd9fadb2d134a7394dcd5dab79c09320bd39 100644
--- a/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
+++ b/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
@@ -8,7 +8,7 @@
#include "core/layout/LayoutImage.h"
#include "core/layout/LayoutTestHelper.h"
#include "platform/graphics/GraphicsContext.h"
-#include "platform/graphics/paint/DisplayItemList.h"
+#include "platform/graphics/paint/PaintController.h"
#include <gtest/gtest.h>
@@ -106,8 +106,8 @@ TEST_F(ImageQualityControllerTest, MediumQualityFilterForUnscaledImage)
LayoutImage* img = toLayoutImage(document().body()->firstChild()->layoutObject());
RefPtr<TestImageLowQuality> testImage = adoptRef(new TestImageLowQuality);
- OwnPtr<DisplayItemList> displayItemList = DisplayItemList::create();
- GraphicsContext context(displayItemList.get());
+ OwnPtr<PaintController> paintController = PaintController::create();
+ GraphicsContext context(paintController.get());
EXPECT_EQ(InterpolationMedium, controller()->chooseInterpolationQuality(&context, img, testImage.get(), testImage.get(), LayoutSize(1, 1)));
}
@@ -134,8 +134,8 @@ TEST_F(ImageQualityControllerTest, LowQualityFilterForLiveResize)
LayoutImage* img = toLayoutImage(document().body()->firstChild()->layoutObject());
RefPtr<TestImageLowQuality> testImage = adoptRef(new TestImageLowQuality);
- OwnPtr<DisplayItemList> displayItemList = DisplayItemList::create();
- GraphicsContext context(displayItemList.get());
+ OwnPtr<PaintController> paintController = PaintController::create();
+ GraphicsContext context(paintController.get());
// Start a resize
document().frame()->view()->willStartLiveResize();
@@ -166,8 +166,8 @@ TEST_F(ImageQualityControllerTest, LowQualityFilterForResizingImage)
LayoutImage* img = toLayoutImage(document().body()->firstChild()->layoutObject());
RefPtr<TestImageLowQuality> testImage = adoptRef(new TestImageLowQuality);
- OwnPtr<DisplayItemList> displayItemList = DisplayItemList::create();
- GraphicsContext context(displayItemList.get());
+ OwnPtr<PaintController> paintController = PaintController::create();
+ GraphicsContext context(paintController.get());
// Paint once. This will kick off a timer to see if we resize it during that timer's execution.
EXPECT_EQ(InterpolationMedium, controller()->chooseInterpolationQuality(&context, img, testImage.get(), testImage.get(), LayoutSize(2, 2)));
@@ -191,8 +191,8 @@ TEST_F(ImageQualityControllerTest, DontKickTheAnimationTimerWhenPaintingAtTheSam
LayoutImage* img = toLayoutImage(document().body()->firstChild()->layoutObject());
RefPtr<TestImageLowQuality> testImage = adoptRef(new TestImageLowQuality);
- OwnPtr<DisplayItemList> displayItemList = DisplayItemList::create();
- GraphicsContext context(displayItemList.get());
+ OwnPtr<PaintController> paintController = PaintController::create();
+ GraphicsContext context(paintController.get());
// Paint once. This will kick off a timer to see if we resize it during that timer's execution.
EXPECT_EQ(InterpolationMedium, controller()->chooseInterpolationQuality(&context, img, testImage.get(), testImage.get(), LayoutSize(2, 2)));
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698