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

Unified Diff: ui/gfx/compositor/layer_unittest.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_unittest.cc
diff --git a/ui/gfx/compositor/layer_unittest.cc b/ui/gfx/compositor/layer_unittest.cc
index 0f14c9dde463c58975f8884a7810953326246aa9..43ef6cde05b1b2350b3064c5e2e470718977aa31 100644
--- a/ui/gfx/compositor/layer_unittest.cc
+++ b/ui/gfx/compositor/layer_unittest.cc
@@ -69,7 +69,7 @@ class LayerWithRealCompositorTest : public testing::Test {
scoped_ptr<gfx::Canvas> canvas(CreateCanvasForLayer(layer));
canvas->FillRectInt(color, 0, 0, layer->bounds().width(),
layer->bounds().height());
- layer->SetCanvas(*canvas->AsCanvasSkia(), layer->bounds().origin());
+ layer->SetCanvas(*canvas->GetSkCanvas(), layer->bounds().origin());
}
void DrawTree(Layer* root) {
@@ -236,7 +236,7 @@ class LayerWithDelegateTest : public testing::Test {
scoped_ptr<gfx::Canvas> canvas(CreateCanvasForLayer(layer));
canvas->FillRectInt(color, 0, 0, layer->bounds().width(),
layer->bounds().height());
- layer->SetCanvas(*canvas->AsCanvasSkia(), layer->bounds().origin());
+ layer->SetCanvas(canvas->GetSkCanvas(), layer->bounds().origin());
}
void DrawTree(Layer* root) {
« ui/gfx/canvas.h ('K') | « ui/gfx/compositor/layer.cc ('k') | ui/gfx/render_text.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698