| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 if (gTable[i] == dst) { | 110 if (gTable[i] == dst) { |
| 111 return gTable[i+1]; | 111 return gTable[i+1]; |
| 112 } | 112 } |
| 113 } | 113 } |
| 114 | 114 |
| 115 return gTable[SK_ARRAY_COUNT(gTable)-1]; | 115 return gTable[SK_ARRAY_COUNT(gTable)-1]; |
| 116 } | 116 } |
| 117 | 117 |
| 118 Factory getFactory() const SK_OVERRIDE { return NULL; } | 118 Factory getFactory() const SK_OVERRIDE { return NULL; } |
| 119 #ifndef SK_IGNORE_TO_STRING | 119 #ifndef SK_IGNORE_TO_STRING |
| 120 virtual void toString(SkString* str) const { str->set("OverdrawXfermode"); } | 120 virtual void toString(SkString* str) const SK_OVERRIDE { str->set("OverdrawX
fermode"); } |
| 121 #endif | 121 #endif |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 class SkOverdrawFilter : public SkDrawFilter { | 124 class SkOverdrawFilter : public SkDrawFilter { |
| 125 public: | 125 public: |
| 126 SkOverdrawFilter() { | 126 SkOverdrawFilter() { |
| 127 fXferMode = SkNEW(OverdrawXfermode); | 127 fXferMode = SkNEW(OverdrawXfermode); |
| 128 } | 128 } |
| 129 | 129 |
| 130 virtual ~SkOverdrawFilter() { | 130 virtual ~SkOverdrawFilter() { |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 } | 671 } |
| 672 | 672 |
| 673 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { | 673 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { |
| 674 if (fCalledAddStackData) { | 674 if (fCalledAddStackData) { |
| 675 fClipStackData.appendf("<br>"); | 675 fClipStackData.appendf("<br>"); |
| 676 addPathData(devPath, "pathOut"); | 676 addPathData(devPath, "pathOut"); |
| 677 return true; | 677 return true; |
| 678 } | 678 } |
| 679 return false; | 679 return false; |
| 680 } | 680 } |
| OLD | NEW |