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

Unified Diff: ui/views/border_unittest.cc

Issue 2509983004: Revert "Change call-sites now that SkCanvas is not ref-counted" (Closed)
Patch Set: Created 4 years, 1 month 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 | « ui/surface/transport_dib_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/border_unittest.cc
diff --git a/ui/views/border_unittest.cc b/ui/views/border_unittest.cc
index ab428df65e6871d2835e3674e095315c6b51e6c5..c9b5b6c033f35dd20a24e917c95b979d5810d160 100644
--- a/ui/views/border_unittest.cc
+++ b/ui/views/border_unittest.cc
@@ -132,7 +132,7 @@ class BorderTest : public ViewsTestBase {
view_->SetSize(gfx::Size(100, 50));
// The canvas should be much bigger than the view.
sk_canvas_.reset(new MockCanvas(1000, 500));
- canvas_.reset(new gfx::Canvas(sk_canvas_.get(), 1.0f));
+ canvas_.reset(new gfx::Canvas(sk_canvas_, 1.0f));
}
void TearDown() override {
@@ -145,7 +145,7 @@ class BorderTest : public ViewsTestBase {
protected:
std::unique_ptr<views::View> view_;
- std::unique_ptr<MockCanvas> sk_canvas_;
+ sk_sp<MockCanvas> sk_canvas_;
std::unique_ptr<gfx::Canvas> canvas_;
};
« no previous file with comments | « ui/surface/transport_dib_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698