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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 | 419 |
420 void SkDebugCanvas::overrideTexFiltering(bool overrideTexFiltering, SkPaint::Fil
terLevel level) { | 420 void SkDebugCanvas::overrideTexFiltering(bool overrideTexFiltering, SkPaint::Fil
terLevel level) { |
421 if (NULL == fTexOverrideFilter) { | 421 if (NULL == fTexOverrideFilter) { |
422 fTexOverrideFilter = new SkTexOverrideFilter; | 422 fTexOverrideFilter = new SkTexOverrideFilter; |
423 } | 423 } |
424 | 424 |
425 fOverrideTexFiltering = overrideTexFiltering; | 425 fOverrideTexFiltering = overrideTexFiltering; |
426 fTexOverrideFilter->setFilterLevel(level); | 426 fTexOverrideFilter->setFilterLevel(level); |
427 } | 427 } |
428 | 428 |
| 429 void SkDebugCanvas::clear(SkColor color) { |
| 430 this->addDrawCommand(new SkClearCommand(color)); |
| 431 } |
| 432 |
429 void SkDebugCanvas::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyl
e edgeStyle) { | 433 void SkDebugCanvas::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyl
e edgeStyle) { |
430 this->addDrawCommand(new SkClipPathCommand(path, op, kSoft_ClipEdgeStyle ==
edgeStyle)); | 434 this->addDrawCommand(new SkClipPathCommand(path, op, kSoft_ClipEdgeStyle ==
edgeStyle)); |
431 } | 435 } |
432 | 436 |
433 void SkDebugCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyl
e edgeStyle) { | 437 void SkDebugCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyl
e edgeStyle) { |
434 this->addDrawCommand(new SkClipRectCommand(rect, op, kSoft_ClipEdgeStyle ==
edgeStyle)); | 438 this->addDrawCommand(new SkClipRectCommand(rect, op, kSoft_ClipEdgeStyle ==
edgeStyle)); |
435 } | 439 } |
436 | 440 |
437 void SkDebugCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeS
tyle edgeStyle) { | 441 void SkDebugCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeS
tyle edgeStyle) { |
438 this->addDrawCommand(new SkClipRRectCommand(rrect, op, kSoft_ClipEdgeStyle =
= edgeStyle)); | 442 this->addDrawCommand(new SkClipRRectCommand(rrect, op, kSoft_ClipEdgeStyle =
= edgeStyle)); |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 } | 732 } |
729 | 733 |
730 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { | 734 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { |
731 if (fCalledAddStackData) { | 735 if (fCalledAddStackData) { |
732 fClipStackData.appendf("<br>"); | 736 fClipStackData.appendf("<br>"); |
733 addPathData(devPath, "pathOut"); | 737 addPathData(devPath, "pathOut"); |
734 return true; | 738 return true; |
735 } | 739 } |
736 return false; | 740 return false; |
737 } | 741 } |
OLD | NEW |