OLD | NEW |
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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 | 421 |
422 bool SkDebugCanvas::translate(SkScalar dx, SkScalar dy) { | 422 bool SkDebugCanvas::translate(SkScalar dx, SkScalar dy) { |
423 addDrawCommand(new Translate(dx, dy)); | 423 addDrawCommand(new Translate(dx, dy)); |
424 return true; | 424 return true; |
425 } | 425 } |
426 | 426 |
427 void SkDebugCanvas::toggleCommand(int index, bool toggle) { | 427 void SkDebugCanvas::toggleCommand(int index, bool toggle) { |
428 SkASSERT(index < fCommandVector.count()); | 428 SkASSERT(index < fCommandVector.count()); |
429 fCommandVector[index]->setVisible(toggle); | 429 fCommandVector[index]->setVisible(toggle); |
430 } | 430 } |
OLD | NEW |