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

Unified Diff: cc/output/renderer_pixeltest.cc

Issue 2710153004: cc: Fix up code to work with concrete cc paint types (Closed)
Patch Set: Rebase Created 3 years, 10 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
« no previous file with comments | « cc/layers/painted_scrollbar_layer_unittest.cc ('k') | cc/playback/discardable_image_map_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/renderer_pixeltest.cc
diff --git a/cc/output/renderer_pixeltest.cc b/cc/output/renderer_pixeltest.cc
index ca64a255d29d3498f6c92a0835ef006b1b34d9af..8f8583e14c8e61c73326a823609f564e1b747cbf 100644
--- a/cc/output/renderer_pixeltest.cc
+++ b/cc/output/renderer_pixeltest.cc
@@ -9,6 +9,7 @@
#include "base/message_loop/message_loop.h"
#include "cc/base/math_util.h"
#include "cc/output/gl_renderer.h"
+#include "cc/paint/paint_canvas.h"
#include "cc/paint/paint_flags.h"
#include "cc/quads/draw_quad.h"
#include "cc/quads/picture_draw_quad.h"
@@ -3213,17 +3214,17 @@ TEST_F(GLRendererPixelTest, TextureQuadBatching) {
bitmap.allocPixels(
SkImageInfo::MakeN32Premul(mask_rect.width(), mask_rect.height()));
SkCanvas canvas(bitmap);
- PaintFlags flags;
- flags.setStyle(PaintFlags::kStroke_Style);
- flags.setStrokeWidth(SkIntToScalar(4));
- flags.setColor(SK_ColorGREEN);
+ SkPaint paint;
+ paint.setStyle(SkPaint::kStroke_Style);
+ paint.setStrokeWidth(SkIntToScalar(4));
+ paint.setColor(SK_ColorGREEN);
canvas.clear(SK_ColorWHITE);
gfx::Rect inset_rect = rect;
while (!inset_rect.IsEmpty()) {
inset_rect.Inset(6, 6, 4, 4);
canvas.drawRect(SkRect::MakeXYWH(inset_rect.x(), inset_rect.y(),
inset_rect.width(), inset_rect.height()),
- flags);
+ paint);
inset_rect.Inset(6, 6, 4, 4);
}
« no previous file with comments | « cc/layers/painted_scrollbar_layer_unittest.cc ('k') | cc/playback/discardable_image_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698