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

Side by Side Diff: src/utils/SkDumpCanvas.cpp

Issue 473633002: SkTextBlob (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: More const API, minimal docs. Created 6 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 unified diff | Download patch
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkDumpCanvas.h" 9 #include "SkDumpCanvas.h"
10 10
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 SkScalarToFloat(constY)); 415 SkScalarToFloat(constY));
416 } 416 }
417 417
418 void SkDumpCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const S kPath& path, 418 void SkDumpCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const S kPath& path,
419 const SkMatrix* matrix, const SkPaint& paint ) { 419 const SkMatrix* matrix, const SkPaint& paint ) {
420 SkString str; 420 SkString str;
421 toString(text, byteLength, paint.getTextEncoding(), &str); 421 toString(text, byteLength, paint.getTextEncoding(), &str);
422 this->dump(kDrawText_Verb, &paint, "drawTextOnPath(%s [%d])", 422 this->dump(kDrawText_Verb, &paint, "drawTextOnPath(%s [%d])",
423 str.c_str(), byteLength); 423 str.c_str(), byteLength);
424 } 424 }
425 void SkDumpCanvas::onDrawTextBlob(const SkTextBlob* blob, const SkPoint& offset,
426 const SkPaint& paint) {
427 // FIXME: impl
428 }
425 429
426 void SkDumpCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matri x, 430 void SkDumpCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matri x,
427 const SkPaint* paint) { 431 const SkPaint* paint) {
428 this->dump(kDrawPicture_Verb, NULL, "drawPicture(%p) %d:%d", picture, 432 this->dump(kDrawPicture_Verb, NULL, "drawPicture(%p) %d:%d", picture,
429 picture->width(), picture->height()); 433 picture->width(), picture->height());
430 fNestLevel += 1; 434 fNestLevel += 1;
431 this->INHERITED::onDrawPicture(picture, matrix, paint); 435 this->INHERITED::onDrawPicture(picture, matrix, paint);
432 fNestLevel -= 1; 436 fNestLevel -= 1;
433 this->dump(kDrawPicture_Verb, NULL, "endPicture(%p) %d:%d", &picture, 437 this->dump(kDrawPicture_Verb, NULL, "endPicture(%p) %d:%d", &picture,
434 picture->width(), picture->height()); 438 picture->width(), picture->height());
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 545
542 /////////////////////////////////////////////////////////////////////////////// 546 ///////////////////////////////////////////////////////////////////////////////
543 547
544 static void dumpToDebugf(const char text[], void*) { 548 static void dumpToDebugf(const char text[], void*) {
545 SkDebugf("%s\n", text); 549 SkDebugf("%s\n", text);
546 } 550 }
547 551
548 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, NULL) {} 552 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, NULL) {}
549 553
550 #endif 554 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698