diff options
Diffstat (limited to 'skia/ext/platform_device.h')
-rw-r--r-- | skia/ext/platform_device.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/skia/ext/platform_device.h b/skia/ext/platform_device.h index 413a47f..00845ca 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 |