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

Unified Diff: ui/gfx/render_text_unittest.cc

Issue 1939143002: Remove all uses of skia::RefPtr and stale includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bad rebase Created 4 years, 7 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
« no previous file with comments | « ui/gfx/render_text.h ('k') | ui/gfx/scoped_sk_region.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text_unittest.cc
diff --git a/ui/gfx/render_text_unittest.cc b/ui/gfx/render_text_unittest.cc
index 845ada06a222a3086dfd2f9ea4807897eb3d9983..52420ef33603a2d977626c6b9bc3d3d1fa5bca4f 100644
--- a/ui/gfx/render_text_unittest.cc
+++ b/ui/gfx/render_text_unittest.cc
@@ -20,6 +20,7 @@
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
#include "third_party/skia/include/core/SkSurface.h"
#include "third_party/skia/include/core/SkTypeface.h"
#include "ui/gfx/break_list.h"
@@ -3085,7 +3086,7 @@ TEST_F(RenderTextTest, TextDoesntClip) {
sk_sp<SkSurface> surface =
SkSurface::MakeRasterN32Premul(kCanvasSize.width(), kCanvasSize.height());
- Canvas canvas(skia::SharePtr(surface->getCanvas()), 1.0f);
+ Canvas canvas(sk_ref_sp(surface->getCanvas()), 1.0f);
std::unique_ptr<RenderText> render_text(RenderText::CreateInstance());
render_text->SetHorizontalAlignment(ALIGN_LEFT);
render_text->SetColor(SK_ColorBLACK);
@@ -3177,7 +3178,7 @@ TEST_F(RenderTextTest, TextDoesClip) {
sk_sp<SkSurface> surface =
SkSurface::MakeRasterN32Premul(kCanvasSize.width(), kCanvasSize.height());
- Canvas canvas(skia::SharePtr(surface->getCanvas()), 1.0f);
+ Canvas canvas(sk_ref_sp(surface->getCanvas()), 1.0f);
std::unique_ptr<RenderText> render_text(RenderText::CreateInstance());
render_text->SetHorizontalAlignment(ALIGN_LEFT);
render_text->SetColor(SK_ColorBLACK);
« no previous file with comments | « ui/gfx/render_text.h ('k') | ui/gfx/scoped_sk_region.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698