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

Side by Side Diff: src/utils/debugger/SkDebugCanvas.cpp

Issue 177683003: Add DRRect to debugger (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Cleanup Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/utils/debugger/SkDrawCommand.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 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 9
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 // NOTE(chudy): Messing up when renamed to DrawRect... Why? 396 // NOTE(chudy): Messing up when renamed to DrawRect... Why?
397 addDrawCommand(new SkDrawRectCommand(rect, paint)); 397 addDrawCommand(new SkDrawRectCommand(rect, paint));
398 } 398 }
399 399
400 void SkDebugCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { 400 void SkDebugCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) {
401 addDrawCommand(new SkDrawRRectCommand(rrect, paint)); 401 addDrawCommand(new SkDrawRRectCommand(rrect, paint));
402 } 402 }
403 403
404 void SkDebugCanvas::onDrawDRRect(const SkRRect& outer, const SkRRect& inner, 404 void SkDebugCanvas::onDrawDRRect(const SkRRect& outer, const SkRRect& inner,
405 const SkPaint& paint) { 405 const SkPaint& paint) {
406 // TODO: add DRRect to debugger 406 this->addDrawCommand(new SkDrawDRRectCommand(outer, inner, paint));
407 } 407 }
408 408
409 void SkDebugCanvas::drawSprite(const SkBitmap& bitmap, int left, int top, 409 void SkDebugCanvas::drawSprite(const SkBitmap& bitmap, int left, int top,
410 const SkPaint* paint = NULL) { 410 const SkPaint* paint = NULL) {
411 addDrawCommand(new SkDrawSpriteCommand(bitmap, left, top, paint)); 411 addDrawCommand(new SkDrawSpriteCommand(bitmap, left, top, paint));
412 } 412 }
413 413
414 void SkDebugCanvas::drawText(const void* text, size_t byteLength, SkScalar x, 414 void SkDebugCanvas::drawText(const void* text, size_t byteLength, SkScalar x,
415 SkScalar y, const SkPaint& paint) { 415 SkScalar y, const SkPaint& paint) {
416 addDrawCommand(new SkDrawTextCommand(text, byteLength, x, y, paint)); 416 addDrawCommand(new SkDrawTextCommand(text, byteLength, x, y, paint));
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 466
467 bool SkDebugCanvas::translate(SkScalar dx, SkScalar dy) { 467 bool SkDebugCanvas::translate(SkScalar dx, SkScalar dy) {
468 addDrawCommand(new SkTranslateCommand(dx, dy)); 468 addDrawCommand(new SkTranslateCommand(dx, dy));
469 return true; 469 return true;
470 } 470 }
471 471
472 void SkDebugCanvas::toggleCommand(int index, bool toggle) { 472 void SkDebugCanvas::toggleCommand(int index, bool toggle) {
473 SkASSERT(index < fCommandVector.count()); 473 SkASSERT(index < fCommandVector.count());
474 fCommandVector[index]->setVisible(toggle); 474 fCommandVector[index]->setVisible(toggle);
475 } 475 }
OLDNEW
« no previous file with comments | « no previous file | src/utils/debugger/SkDrawCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698