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

Unified Diff: ui/gfx/blit_unittest.cc

Issue 2595023002: clean-up and clarify CreatePlatformCanvas methods (Closed)
Patch Set: single decl of CreatePlatformCanvasWithPixels Created 4 years 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 | « skia/ext/skia_utils_mac.mm ('k') | ui/surface/transport_dib_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/blit_unittest.cc
diff --git a/ui/gfx/blit_unittest.cc b/ui/gfx/blit_unittest.cc
index 50e7952265adbf157ccdda77dbafbf89a364d982..2bce0dcffe5add2fda46ee1e9c419b8383adf136 100644
--- a/ui/gfx/blit_unittest.cc
+++ b/ui/gfx/blit_unittest.cc
@@ -152,9 +152,10 @@ TEST(Blit, WithSharedMemory) {
base::SharedMemory shared_mem;
ASSERT_TRUE(shared_mem.CreateAnonymous(kCanvasWidth * kCanvasHeight));
base::SharedMemoryHandle section = shared_mem.handle();
- std::unique_ptr<SkCanvas> canvas = skia::CreatePlatformCanvas(
- kCanvasWidth, kCanvasHeight, true, section.GetHandle(),
- skia::RETURN_NULL_ON_FAILURE);
+ std::unique_ptr<SkCanvas> canvas =
+ skia::CreatePlatformCanvasWithSharedSection(kCanvasWidth, kCanvasHeight,
+ true, section.GetHandle(),
+ skia::RETURN_NULL_ON_FAILURE);
ASSERT_TRUE(canvas);
shared_mem.Close();
« no previous file with comments | « skia/ext/skia_utils_mac.mm ('k') | ui/surface/transport_dib_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698