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

Unified Diff: ui/gfx/render_text_unittest.cc

Issue 1855273002: Update new Surface callsites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: software_output_device was indirectly including skia::refptr, switch to sk_sp<> Created 4 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
Index: ui/gfx/render_text_unittest.cc
diff --git a/ui/gfx/render_text_unittest.cc b/ui/gfx/render_text_unittest.cc
index d07c8f5393b9ded8a8ae35a422a432d6b210c901..9186d4d05f0b8f3b8dbb99b3c0487d36bdf0c354 100644
--- a/ui/gfx/render_text_unittest.cc
+++ b/ui/gfx/render_text_unittest.cc
@@ -3017,8 +3017,8 @@ TEST_F(RenderTextTest, TextDoesntClip) {
const Size kCanvasSize(300, 50);
const int kTestSize = 10;
- skia::RefPtr<SkSurface> surface = skia::AdoptRef(
- SkSurface::NewRasterN32Premul(kCanvasSize.width(), kCanvasSize.height()));
+ sk_sp<SkSurface> surface =
+ SkSurface::MakeRasterN32Premul(kCanvasSize.width(), kCanvasSize.height());
Canvas canvas(skia::SharePtr(surface->getCanvas()), 1.0f);
scoped_ptr<RenderText> render_text(RenderText::CreateInstance());
render_text->SetHorizontalAlignment(ALIGN_LEFT);
@@ -3108,8 +3108,8 @@ TEST_F(RenderTextTest, TextDoesClip) {
const Size kCanvasSize(300, 50);
const int kTestSize = 10;
- skia::RefPtr<SkSurface> surface = skia::AdoptRef(
- SkSurface::NewRasterN32Premul(kCanvasSize.width(), kCanvasSize.height()));
+ sk_sp<SkSurface> surface =
+ SkSurface::MakeRasterN32Premul(kCanvasSize.width(), kCanvasSize.height());
Canvas canvas(skia::SharePtr(surface->getCanvas()), 1.0f);
scoped_ptr<RenderText> render_text(RenderText::CreateInstance());
render_text->SetHorizontalAlignment(ALIGN_LEFT);
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp ('k') | ui/ozone/demo/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698