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

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

Issue 1099333004: Update {virtual,override} to follow C++11 style in src/utils. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « src/utils/SkTextureCompressor_Blitter.h ('k') | no next file » | 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 idx = 10 - (SkColorGetG(dst)+22)/45; 46 idx = 10 - (SkColorGetG(dst)+22)/45;
47 } 47 }
48 ++idx; 48 ++idx;
49 SkASSERT(idx < (int)SK_ARRAY_COUNT(gTable)); 49 SkASSERT(idx < (int)SK_ARRAY_COUNT(gTable));
50 50
51 return gTable[idx]; 51 return gTable[idx];
52 } 52 }
53 53
54 Factory getFactory() const override { return NULL; } 54 Factory getFactory() const override { return NULL; }
55 #ifndef SK_IGNORE_TO_STRING 55 #ifndef SK_IGNORE_TO_STRING
56 virtual void toString(SkString* str) const override { str->set("OverdrawXfer mode"); } 56 void toString(SkString* str) const override { str->set("OverdrawXfermode"); }
57 #endif 57 #endif
58 }; 58 };
59 59
60 class DebugPaintFilterCanvas : public SkPaintFilterCanvas { 60 class DebugPaintFilterCanvas : public SkPaintFilterCanvas {
61 public: 61 public:
62 DebugPaintFilterCanvas(int width, int height, bool overdrawViz, bool overrid eFilterQuality, 62 DebugPaintFilterCanvas(int width, int height, bool overdrawViz, bool overrid eFilterQuality,
63 SkFilterQuality quality) 63 SkFilterQuality quality)
64 : INHERITED(width, height) 64 : INHERITED(width, height)
65 , fOverdrawXfermode(overdrawViz ? SkNEW(OverdrawXfermode) : NULL) 65 , fOverdrawXfermode(overdrawViz ? SkNEW(OverdrawXfermode) : NULL)
66 , fOverrideFilterQuality(overrideFilterQuality) 66 , fOverrideFilterQuality(overrideFilterQuality)
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 } 673 }
674 674
675 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 675 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
676 if (fCalledAddStackData) { 676 if (fCalledAddStackData) {
677 fClipStackData.appendf("<br>"); 677 fClipStackData.appendf("<br>");
678 addPathData(devPath, "pathOut"); 678 addPathData(devPath, "pathOut");
679 return true; 679 return true;
680 } 680 }
681 return false; 681 return false;
682 } 682 }
OLDNEW
« no previous file with comments | « src/utils/SkTextureCompressor_Blitter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698