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

Unified Diff: cc/test/fake_scrollbar.cc

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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/test/fake_scrollbar.h ('k') | cc/test/picture_cache_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_scrollbar.cc
diff --git a/cc/test/fake_scrollbar.cc b/cc/test/fake_scrollbar.cc
index 58a04517cddf0a4971777bc96198af6344c33624..c0ab614cc2602932036f9d313bf609d0f58c1ef5 100644
--- a/cc/test/fake_scrollbar.cc
+++ b/cc/test/fake_scrollbar.cc
@@ -4,6 +4,8 @@
#include "cc/test/fake_scrollbar.h"
+#include "skia/ext/cdl_canvas.h"
+#include "skia/ext/cdl_paint.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "ui/gfx/skia_util.h"
@@ -71,18 +73,18 @@ bool FakeScrollbar::NeedsPaintPart(ScrollbarPart part) const {
return needs_paint_track_;
}
-void FakeScrollbar::PaintPart(SkCanvas* canvas,
- ScrollbarPart part,
- const gfx::Rect& content_rect) {
+void FakeScrollbar::PaintPart(CdlCanvas* canvas,
+ ScrollbarPart part,
+ const gfx::Rect& content_rect) {
if (!paint_)
return;
// Fill the scrollbar with a different color each time.
fill_color_++;
- SkPaint paint;
+ CdlPaint paint;
paint.setAntiAlias(false);
paint.setColor(paint_fill_color());
- paint.setStyle(SkPaint::kFill_Style);
+ paint.setStyle(CdlPaint::kFill_Style);
// Emulate the how the real scrollbar works by using scrollbar's rect for
// TRACK and the given content_rect for the THUMB
« no previous file with comments | « cc/test/fake_scrollbar.h ('k') | cc/test/picture_cache_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698