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

Unified Diff: ui/surface/transport_dib.h

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. 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/native_theme/native_theme_win.cc ('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/surface/transport_dib.h
diff --git a/ui/surface/transport_dib.h b/ui/surface/transport_dib.h
index 3217b5ff8a663927af793dd61c5ab02c6f157c86..8b9bab2a7e74bdf974b66a2d3f34946bbed9781b 100644
--- a/ui/surface/transport_dib.h
+++ b/ui/surface/transport_dib.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "base/memory/shared_memory.h"
#include "build/build_config.h"
+#include "skia/ext/cdl_common.h"
#include "ui/surface/surface_export.h"
#if defined(OS_WIN)
@@ -19,8 +20,6 @@
#include <memory>
-class SkCanvas;
-
// -----------------------------------------------------------------------------
// A TransportDIB is a block of memory that is used to transport pixels
// between processes: from the renderer process to the browser, and
@@ -73,7 +72,7 @@ class SURFACE_EXPORT TransportDIB {
//
// Will return NULL on allocation failure. This could be because the image
// is too large to map into the current process' address space.
- std::unique_ptr<SkCanvas> GetPlatformCanvas(int w, int h, bool opaque);
+ std::unique_ptr<CdlCanvas> GetPlatformCanvas(int w, int h, bool opaque);
// Map the DIB into the current process if it is not already. This is used to
// map a DIB that has already been created. Returns true if the DIB is mapped.
« no previous file with comments | « ui/native_theme/native_theme_win.cc ('k') | ui/surface/transport_dib_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698