summaryrefslogtreecommitdiffstats
path: root/skia/ext/platform_canvas_mac.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-14 16:58:55 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-14 16:58:55 +0000
commit87080c619c9d60f0ed3aa988d89b36c35eca95b1 (patch)
tree93d5c34a529858c1d891a55a092ee53efd06976b /skia/ext/platform_canvas_mac.cc
parentc31085d9656ff79a389318ffc7afed0fd2cd296c (diff)
downloadchromium_src-87080c619c9d60f0ed3aa988d89b36c35eca95b1.zip
chromium_src-87080c619c9d60f0ed3aa988d89b36c35eca95b1.tar.gz
chromium_src-87080c619c9d60f0ed3aa988d89b36c35eca95b1.tar.bz2
Remove a bunch of base dependencies from skia/ext. The only nontrivial change is
in bitmap_platform_device_mac. The refcounting now matches the way the Windows file works. Review URL: http://codereview.chromium.org/17627 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8015 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/platform_canvas_mac.cc')
-rwxr-xr-xskia/ext/platform_canvas_mac.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/skia/ext/platform_canvas_mac.cc b/skia/ext/platform_canvas_mac.cc
index 5b5845c..6d08454 100755
--- a/skia/ext/platform_canvas_mac.cc
+++ b/skia/ext/platform_canvas_mac.cc
@@ -4,8 +4,8 @@
#include "skia/ext/platform_canvas_mac.h"
-#include "base/logging.h"
#include "skia/ext/bitmap_platform_device_mac.h"
+#include "SkTypes.h"
namespace skia {
@@ -55,24 +55,24 @@ PlatformDeviceMac& PlatformCanvasMac::getTopPlatformDevice() const {
}
SkDevice* PlatformCanvasMac::createDevice(SkBitmap::Config config,
- int width,
- int height,
- bool is_opaque, bool isForLayer) {
- DCHECK(config == SkBitmap::kARGB_8888_Config);
+ int width,
+ int height,
+ bool is_opaque, bool isForLayer) {
+ SkASSERT(config == SkBitmap::kARGB_8888_Config);
return createPlatformDevice(width, height, is_opaque, NULL);
}
SkDevice* PlatformCanvasMac::createPlatformDevice(int width,
- int height,
- bool is_opaque,
- CGContextRef context) {
+ int height,
+ bool is_opaque,
+ CGContextRef context) {
SkDevice* device = BitmapPlatformDeviceMac::Create(context, width, height,
- is_opaque);
+ is_opaque);
return device;
}
SkDevice* PlatformCanvasMac::setBitmapDevice(const SkBitmap&) {
- NOTREACHED();
+ SkASSERT(false);
return NULL;
}