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

Unified Diff: ui/gfx/render_text_unittest.cc

Issue 2476113002: Change call-sites now that SkCanvas is not ref-counted (Closed)
Patch Set: try fixing win again 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
Index: ui/gfx/render_text_unittest.cc
diff --git a/ui/gfx/render_text_unittest.cc b/ui/gfx/render_text_unittest.cc
index 5091fcacd3d871eee9fa0d9b21d1095453e3d7dd..c51ef30315f664206e9501ccc234b411236c93a4 100644
--- a/ui/gfx/render_text_unittest.cc
+++ b/ui/gfx/render_text_unittest.cc
@@ -3645,7 +3645,7 @@ TEST_P(RenderTextTest, TextDoesntClip) {
sk_sp<SkSurface> surface =
SkSurface::MakeRasterN32Premul(kCanvasSize.width(), kCanvasSize.height());
- Canvas canvas(sk_ref_sp(surface->getCanvas()), 1.0f);
+ Canvas canvas(surface->getCanvas(), 1.0f);
RenderText* render_text = GetRenderText();
render_text->SetHorizontalAlignment(ALIGN_LEFT);
render_text->SetColor(SK_ColorBLACK);
@@ -3738,7 +3738,7 @@ TEST_P(RenderTextTest, TextDoesClip) {
sk_sp<SkSurface> surface =
SkSurface::MakeRasterN32Premul(kCanvasSize.width(), kCanvasSize.height());
- Canvas canvas(sk_ref_sp(surface->getCanvas()), 1.0f);
+ Canvas canvas(surface->getCanvas(), 1.0f);
RenderText* render_text = GetRenderText();
render_text->SetHorizontalAlignment(ALIGN_LEFT);
render_text->SetColor(SK_ColorBLACK);

Powered by Google App Engine
This is Rietveld 408576698