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

Unified Diff: cc/layers/painted_overlay_scrollbar_layer.cc

Issue 2690583002: Make cc/paint have concrete types (Closed)
Patch Set: PaintRecord as typedef, fixup playback calls Created 3 years, 9 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 | « ash/common/shelf/shelf_button.cc ('k') | cc/paint/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/painted_overlay_scrollbar_layer.cc
diff --git a/cc/layers/painted_overlay_scrollbar_layer.cc b/cc/layers/painted_overlay_scrollbar_layer.cc
index 4f64e9e3d7dce2176ff0bfe13351fab150df6373..88485046eb05dcf398f9a5753aa6ad6f3a3ff07e 100644
--- a/cc/layers/painted_overlay_scrollbar_layer.cc
+++ b/cc/layers/painted_overlay_scrollbar_layer.cc
@@ -140,16 +140,16 @@ bool PaintedOverlayScrollbarLayer::PaintThumbIfNeeded() {
SkBitmap skbitmap;
skbitmap.allocN32Pixels(paint_rect.width(), paint_rect.height());
- SkCanvas skcanvas(skbitmap);
+ PaintCanvas canvas(skbitmap);
SkRect content_skrect = RectToSkRect(paint_rect);
- SkPaint paint;
- paint.setAntiAlias(false);
- paint.setBlendMode(SkBlendMode::kClear);
- skcanvas.drawRect(content_skrect, paint);
- skcanvas.clipRect(content_skrect);
+ PaintFlags flags;
+ flags.setAntiAlias(false);
+ flags.setBlendMode(SkBlendMode::kClear);
+ canvas.drawRect(content_skrect, flags);
+ canvas.clipRect(content_skrect);
- scrollbar_->PaintPart(&skcanvas, THUMB, paint_rect);
+ scrollbar_->PaintPart(&canvas, THUMB, paint_rect);
// Make sure that the pixels are no longer mutable to unavoid unnecessary
// allocation and copying.
skbitmap.setImmutable();
« no previous file with comments | « ash/common/shelf/shelf_button.cc ('k') | cc/paint/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698