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

Unified Diff: skia/ext/platform_device.h

Issue 125109: Refactor the PlatformContext layer to have only one class. (Closed)
Patch Set: Created 11 years, 6 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 | « skia/ext/platform_canvas_win.cc ('k') | skia/ext/platform_device_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_device.h
diff --git a/skia/ext/platform_device.h b/skia/ext/platform_device.h
index 413a47f58b0c7e369d8f6d16e7dab1fdb98bc97b..00845cada28def2ada9e3db3a3cc63f4c3527e4e 100644
--- a/skia/ext/platform_device.h
+++ b/skia/ext/platform_device.h
@@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Declare a platform-neutral name for this platform's device class
-// that can be used by upper-level classes that just need to pass a reference
-// around.
+#ifndef SKIA_EXT_PLATFORM_DEVICE_H_
+#define SKIA_EXT_PLATFORM_DEVICE_H_
+
+// This file provides an easy way to include the appropriate PlatformDevice
+// header file for your platform.
#if defined(WIN32)
#include "skia/ext/platform_device_win.h"
@@ -14,14 +16,4 @@
#include "skia/ext/platform_device_linux.h"
#endif
-namespace skia {
-
-#if defined(WIN32)
-typedef PlatformDeviceWin PlatformDevice;
-#elif defined(__APPLE__)
-typedef PlatformDeviceMac PlatformDevice;
-#elif defined(__linux__)
-typedef PlatformDeviceLinux PlatformDevice;
#endif
-
-} // namespace skia
« no previous file with comments | « skia/ext/platform_canvas_win.cc ('k') | skia/ext/platform_device_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698