summaryrefslogtreecommitdiffstats
path: root/skia/ext/vector_canvas.cc
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ext/vector_canvas.cc')
-rw-r--r--skia/ext/vector_canvas.cc12
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;