diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-19 21:18:21 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-19 21:18:21 +0000 |
commit | 0026e48d1cf39bac65875fba6f5d38eb550a22f9 (patch) | |
tree | b144d2619f68e667f8970c91b72cd2478b9231c3 /skia/ext/vector_canvas.cc | |
parent | 28461252ccd08f81ba91e89428fce03f9d66530a (diff) | |
download | chromium_src-0026e48d1cf39bac65875fba6f5d38eb550a22f9.zip chromium_src-0026e48d1cf39bac65875fba6f5d38eb550a22f9.tar.gz chromium_src-0026e48d1cf39bac65875fba6f5d38eb550a22f9.tar.bz2 |
Remove base dependencies in the Windows-specific skia/ext code.
Review URL: http://codereview.chromium.org/14900
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7317 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/vector_canvas.cc')
-rw-r--r-- | skia/ext/vector_canvas.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/skia/ext/vector_canvas.cc b/skia/ext/vector_canvas.cc index 33ac265..ea5542f 100644 --- a/skia/ext/vector_canvas.cc +++ b/skia/ext/vector_canvas.cc @@ -4,7 +4,6 @@ #include "skia/ext/vector_canvas.h" -#include "base/logging.h" #include "skia/ext/vector_device.h" namespace skia { @@ -14,7 +13,8 @@ VectorCanvas::VectorCanvas() { VectorCanvas::VectorCanvas(HDC dc, int width, int height) { bool initialized = initialize(dc, width, height); - CHECK(initialized); + if (!initialized) + __debugbreak(); } VectorCanvas::~VectorCanvas() { @@ -35,20 +35,20 @@ SkBounder* VectorCanvas::setBounder(SkBounder* bounder) { return PlatformCanvasWin::setBounder(bounder); // This function isn't used in the code. Verify this assumption. - NOTREACHED(); + SkASSERT(false); return NULL; } SkDevice* VectorCanvas::createDevice(SkBitmap::Config config, int width, int height, bool is_opaque, bool isForLayer) { - DCHECK(config == SkBitmap::kARGB_8888_Config); + SkASSERT(config == SkBitmap::kARGB_8888_Config); return createPlatformDevice(width, height, is_opaque, NULL); } SkDrawFilter* VectorCanvas::setDrawFilter(SkDrawFilter* filter) { // This function isn't used in the code. Verify this assumption. - NOTREACHED(); + SkASSERT(false); return NULL; } @@ -76,7 +76,7 @@ SkDevice* VectorCanvas::createPlatformDevice(int width, // multiply each SkScalar that are passed to SkScalarRound(value) as // SkScalarRound(value * 10). Safari is already doing the same for text // rendering. - DCHECK(shared_section); + SkASSERT(shared_section); PlatformDeviceWin* device = VectorDevice::create( reinterpret_cast<HDC>(shared_section), width, height); return device; |