diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-19 21:22:31 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-19 21:22:31 +0000 |
commit | 83d36f001d591d153b3442e9d0f3739ee984469a (patch) | |
tree | 34b782a4665736d8cc2a11f0806f13aa4c765919 /skia/ext/vector_canvas.cc | |
parent | 0026e48d1cf39bac65875fba6f5d38eb550a22f9 (diff) | |
download | chromium_src-83d36f001d591d153b3442e9d0f3739ee984469a.zip chromium_src-83d36f001d591d153b3442e9d0f3739ee984469a.tar.gz chromium_src-83d36f001d591d153b3442e9d0f3739ee984469a.tar.bz2 |
Reverting 7317.
Review URL: http://codereview.chromium.org/15089
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7318 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 ea5542f..33ac265 100644 --- a/skia/ext/vector_canvas.cc +++ b/skia/ext/vector_canvas.cc @@ -4,6 +4,7 @@ #include "skia/ext/vector_canvas.h" +#include "base/logging.h" #include "skia/ext/vector_device.h" namespace skia { @@ -13,8 +14,7 @@ VectorCanvas::VectorCanvas() { VectorCanvas::VectorCanvas(HDC dc, int width, int height) { bool initialized = initialize(dc, width, height); - if (!initialized) - __debugbreak(); + CHECK(initialized); } 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. - SkASSERT(false); + NOTREACHED(); return NULL; } SkDevice* VectorCanvas::createDevice(SkBitmap::Config config, int width, int height, bool is_opaque, bool isForLayer) { - SkASSERT(config == SkBitmap::kARGB_8888_Config); + DCHECK(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. - SkASSERT(false); + NOTREACHED(); 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. - SkASSERT(shared_section); + DCHECK(shared_section); PlatformDeviceWin* device = VectorDevice::create( reinterpret_cast<HDC>(shared_section), width, height); return device; |