Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(580)

Unified Diff: skia/ext/vector_platform_device_linux.cc

Issue 165223: Enable skia asserts. They were disabled some time ago due to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/image_operations_unittest.cc ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/vector_platform_device_linux.cc
===================================================================
--- skia/ext/vector_platform_device_linux.cc (revision 22915)
+++ skia/ext/vector_platform_device_linux.cc (working copy)
@@ -33,7 +33,7 @@
// for testing when we run chromium without sanboxing.
surface_ = cairo_pdf_surface_create("chrome_printing_test.pdf",
width(), height());
- SkASSERT(surface);
+ SkASSERT(surface_);
context_ = cairo_create(surface_);
SkASSERT(context_);
@@ -41,7 +41,7 @@
}
VectorPlatformDevice::~VectorPlatformDevice() {
- SkASSERT(surface);
+ SkASSERT(surface_);
SkASSERT(context_);
cairo_destroy(context_);
@@ -72,7 +72,6 @@
int y,
const SkPaint& paint) {
SkASSERT(device);
- SkASSERT(device->accessBitmap(false));
// TODO(myhuang): We may also have to consider http://b/1183870 .
drawSprite(draw, device->accessBitmap(false), x, y, paint);
@@ -248,7 +247,7 @@
const SkPaint& paint) {
SkASSERT(text);
SkASSERT(pos);
- SkASSERT(paint.gettextEncoding() == SkPaint::kGlyphID_TextEncoding);
+ SkASSERT(paint.getTextEncoding() == SkPaint::kGlyphID_TextEncoding);
SkASSERT(scalarsPerPos == 2); // Each pos contains x and y.
if (!len)
« no previous file with comments | « skia/ext/image_operations_unittest.cc ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698