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

Unified Diff: ui/surface/transport_dib_posix.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 | « ui/gfx/blit_unittest.cc ('k') | ui/surface/transport_dib_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/surface/transport_dib_posix.cc
diff --git a/ui/surface/transport_dib_posix.cc b/ui/surface/transport_dib_posix.cc
index 8beba1f7e5cf62567502c7228622ba483fc44e3a..5f68581d7d0de37d40e1b7b106033674ba81270b 100644
--- a/ui/surface/transport_dib_posix.cc
+++ b/ui/surface/transport_dib_posix.cc
@@ -63,9 +63,9 @@ std::unique_ptr<SkCanvas> TransportDIB::GetPlatformCanvas(int w,
bool opaque) {
if ((!memory() && !Map()) || !VerifyCanvasSize(w, h))
return NULL;
- return skia::CreatePlatformCanvas(w, h, opaque,
- reinterpret_cast<uint8_t*>(memory()),
- skia::RETURN_NULL_ON_FAILURE);
+ return skia::CreatePlatformCanvasWithPixels(
+ w, h, opaque, reinterpret_cast<uint8_t*>(memory()),
+ skia::RETURN_NULL_ON_FAILURE);
}
bool TransportDIB::Map() {
« no previous file with comments | « ui/gfx/blit_unittest.cc ('k') | ui/surface/transport_dib_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698