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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 SkASSERT(index < fCommandVector.count()); | 372 SkASSERT(index < fCommandVector.count()); |
373 return fCommandVector[index]; | 373 return fCommandVector[index]; |
374 } | 374 } |
375 | 375 |
376 void SkDebugCanvas::setDrawCommandAt(int index, SkDrawCommand* command) { | 376 void SkDebugCanvas::setDrawCommandAt(int index, SkDrawCommand* command) { |
377 SkASSERT(index < fCommandVector.count()); | 377 SkASSERT(index < fCommandVector.count()); |
378 delete fCommandVector[index]; | 378 delete fCommandVector[index]; |
379 fCommandVector[index] = command; | 379 fCommandVector[index] = command; |
380 } | 380 } |
381 | 381 |
382 SkTDArray<SkString*>* SkDebugCanvas::getCommandInfo(int index) { | 382 const SkTDArray<SkString*>* SkDebugCanvas::getCommandInfo(int index) const { |
383 SkASSERT(index < fCommandVector.count()); | 383 SkASSERT(index < fCommandVector.count()); |
384 return fCommandVector[index]->Info(); | 384 return fCommandVector[index]->Info(); |
385 } | 385 } |
386 | 386 |
387 bool SkDebugCanvas::getDrawCommandVisibilityAt(int index) { | 387 bool SkDebugCanvas::getDrawCommandVisibilityAt(int index) { |
388 SkASSERT(index < fCommandVector.count()); | 388 SkASSERT(index < fCommandVector.count()); |
389 return fCommandVector[index]->isVisible(); | 389 return fCommandVector[index]->isVisible(); |
390 } | 390 } |
391 | 391 |
392 const SkTDArray <SkDrawCommand*>& SkDebugCanvas::getDrawCommands() const { | 392 const SkTDArray <SkDrawCommand*>& SkDebugCanvas::getDrawCommands() const { |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 } | 733 } |
734 | 734 |
735 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { | 735 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { |
736 if (fCalledAddStackData) { | 736 if (fCalledAddStackData) { |
737 fClipStackData.appendf("<br>"); | 737 fClipStackData.appendf("<br>"); |
738 addPathData(devPath, "pathOut"); | 738 addPathData(devPath, "pathOut"); |
739 return true; | 739 return true; |
740 } | 740 } |
741 return false; | 741 return false; |
742 } | 742 } |
OLD | NEW |