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

Unified Diff: gpu/ipc/common/surface_handle.h

Issue 2364633003: color: Set GpuMemoryBuffer color spaces for Canvas (Closed)
Patch Set: Fix constexpr Created 4 years, 3 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 | « content/renderer/renderer_blink_platform_impl.cc ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/common/surface_handle.h
diff --git a/gpu/ipc/common/surface_handle.h b/gpu/ipc/common/surface_handle.h
index a0009b2ab03431aab12ba255835293d8b5778fb6..70659ab5b521dafe909bc41884abd52746647459 100644
--- a/gpu/ipc/common/surface_handle.h
+++ b/gpu/ipc/common/surface_handle.h
@@ -29,10 +29,10 @@ namespace gpu {
// be defined, because some APIs that use it are referenced there.
#if defined(GPU_SURFACE_HANDLE_IS_ACCELERATED_WINDOW)
using SurfaceHandle = gfx::AcceleratedWidget;
-const SurfaceHandle kNullSurfaceHandle = gfx::kNullAcceleratedWidget;
+constexpr SurfaceHandle kNullSurfaceHandle = gfx::kNullAcceleratedWidget;
ccameron 2016/09/29 20:47:53 This is not strictly necessary, but it'll be neede
#elif defined(OS_MACOSX) || defined(OS_ANDROID) || defined(OS_NACL)
using SurfaceHandle = int32_t;
-const SurfaceHandle kNullSurfaceHandle = 0;
+constexpr SurfaceHandle kNullSurfaceHandle = 0;
#else
#error Platform not supported.
#endif
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698