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

Unified Diff: ui/gfx/compositor/layer.cc

Issue 8122013: Allow CanvasSkia to bind to an existing SkCanvas. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 1 more fix Created 9 years, 2 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: ui/gfx/compositor/layer.cc
diff --git a/ui/gfx/compositor/layer.cc b/ui/gfx/compositor/layer.cc
index fc1db003602f3e5315c6f53303f9133cc701a801..85ad3756d46b7388a8eaa58c97ea1730a7db413a 100644
--- a/ui/gfx/compositor/layer.cc
+++ b/ui/gfx/compositor/layer.cc
@@ -278,7 +278,7 @@ void Layer::UpdateLayerCanvas() {
draw_rect.width(), draw_rect.height(), false));
canvas->TranslateInt(-draw_rect.x(), -draw_rect.y());
delegate_->OnPaintLayer(canvas.get());
- SetCanvas(*canvas->AsCanvasSkia(), draw_rect.origin());
+ SetCanvas(*canvas->GetSkCanvas(), draw_rect.origin());
}
void Layer::RecomputeHole() {

Powered by Google App Engine
This is Rietveld 408576698