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

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

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 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/GraphicsContextTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp
index d4471a768ea4b708d4b57c096e64fd773a8c9abe..64e27a828377e03dea3cfdc4dc797bef0c1468d6 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp
@@ -25,6 +25,7 @@
#include "platform/graphics/GraphicsContext.h"
#include "platform/graphics/BitmapImage.h"
+#include "platform/graphics/GraphicsScreen.h"
#include "platform/graphics/Path.h"
#include "platform/graphics/paint/PaintController.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -64,6 +65,8 @@ namespace blink {
TEST(GraphicsContextTest, pictureRecording)
{
+ WillPaintForDevice device(ScreenDevice::sRGBTest);
+
SkBitmap bitmap;
bitmap.allocN32Pixels(100, 100);
bitmap.eraseColor(0);
@@ -93,6 +96,8 @@ TEST(GraphicsContextTest, pictureRecording)
TEST(GraphicsContextTest, UnboundedDrawsAreClipped)
{
+ WillPaintForDevice device(ScreenDevice::sRGBTest);
+
SkBitmap bitmap;
bitmap.allocN32Pixels(400, 400);
bitmap.eraseColor(0);

Powered by Google App Engine
This is Rietveld 408576698