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

Unified Diff: content/browser/web_contents/aura/shadow_layer_delegate.cc

Issue 1064183002: content/aura: Use gfx::Canvas::DrawRect instead of unwrapping SkCanvas. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/aura/shadow_layer_delegate.cc
diff --git a/content/browser/web_contents/aura/shadow_layer_delegate.cc b/content/browser/web_contents/aura/shadow_layer_delegate.cc
index 54543075adc8648a332f1afbe3f938fae442e758..a38d5ca2b57a70f295dc445b7eea9634150df135 100644
--- a/content/browser/web_contents/aura/shadow_layer_delegate.cc
+++ b/content/browser/web_contents/aura/shadow_layer_delegate.cc
@@ -50,8 +50,7 @@ void ShadowLayerDelegate::OnPaintLayer(const ui::PaintContext& context) {
SkPaint paint;
paint.setShader(shader.get());
ui::PaintRecorder recorder(context);
- recorder.canvas()->sk_canvas()->drawRect(gfx::RectToSkRect(paint_rect),
- paint);
+ recorder.canvas()->DrawRect(paint_rect, paint);
}
void ShadowLayerDelegate::OnDelegatedFrameDamage(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698