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

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

Issue 1037793002: C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: git cl web Created 5 years, 9 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/android/SkAndroidSDKCanvas.h ('k') | src/utils/debugger/SkDebugCanvas.cpp » ('j') | 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 #ifndef SKDEBUGCANVAS_H_ 10 #ifndef SKDEBUGCANVAS_H_
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void setUserMatrix(SkMatrix matrix) { 135 void setUserMatrix(SkMatrix matrix) {
136 fUserMatrix = matrix; 136 fUserMatrix = matrix;
137 } 137 }
138 138
139 SkString clipStackData() const { return fClipStackData; } 139 SkString clipStackData() const { return fClipStackData; }
140 140
141 //////////////////////////////////////////////////////////////////////////////// 141 ////////////////////////////////////////////////////////////////////////////////
142 // Inherited from SkCanvas 142 // Inherited from SkCanvas
143 //////////////////////////////////////////////////////////////////////////////// 143 ////////////////////////////////////////////////////////////////////////////////
144 144
145 void beginCommentGroup(const char* description) SK_OVERRIDE; 145 void beginCommentGroup(const char* description) override;
146 void addComment(const char* kywd, const char* value) SK_OVERRIDE; 146 void addComment(const char* kywd, const char* value) override;
147 void endCommentGroup() SK_OVERRIDE; 147 void endCommentGroup() override;
148 148
149 static const int kVizImageHeight = 256; 149 static const int kVizImageHeight = 256;
150 static const int kVizImageWidth = 256; 150 static const int kVizImageWidth = 256;
151 151
152 bool isClipEmpty() const SK_OVERRIDE { return false; } 152 bool isClipEmpty() const override { return false; }
153 bool isClipRect() const SK_OVERRIDE { return true; } 153 bool isClipRect() const override { return true; }
154 bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { 154 bool getClipBounds(SkRect* bounds) const override {
155 if (bounds) { 155 if (bounds) {
156 bounds->setXYWH(0, 0, 156 bounds->setXYWH(0, 0,
157 SkIntToScalar(this->imageInfo().width()), 157 SkIntToScalar(this->imageInfo().width()),
158 SkIntToScalar(this->imageInfo().height())); 158 SkIntToScalar(this->imageInfo().height()));
159 } 159 }
160 return true; 160 return true;
161 } 161 }
162 bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { 162 bool getClipDeviceBounds(SkIRect* bounds) const override {
163 if (bounds) { 163 if (bounds) {
164 bounds->setLargest(); 164 bounds->setLargest();
165 } 165 }
166 return true; 166 return true;
167 } 167 }
168 168
169 protected: 169 protected:
170 void willSave() SK_OVERRIDE; 170 void willSave() override;
171 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) SK _OVERRIDE; 171 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) ov erride;
172 void willRestore() SK_OVERRIDE; 172 void willRestore() override;
173 173
174 void didConcat(const SkMatrix&) SK_OVERRIDE; 174 void didConcat(const SkMatrix&) override;
175 void didSetMatrix(const SkMatrix&) SK_OVERRIDE; 175 void didSetMatrix(const SkMatrix&) override;
176 176
177 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID E; 177 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
178 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, 178 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y,
179 const SkPaint&) SK_OVERRIDE; 179 const SkPaint&) override;
180 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], 180 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[],
181 const SkPaint&) SK_OVERRIDE; 181 const SkPaint&) override;
182 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos [], 182 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos [],
183 SkScalar constY, const SkPaint&) SK_OVERRIDE; 183 SkScalar constY, const SkPaint&) override;
184 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat h, 184 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat h,
185 const SkMatrix* matrix, const SkPaint&) SK_OVERRIDE; 185 const SkMatrix* matrix, const SkPaint&) override;
186 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, 186 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
187 const SkPaint& paint) SK_OVERRIDE; 187 const SkPaint& paint) override;
188 188
189 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], 189 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
190 const SkPoint texCoords[4], SkXfermode* xmode, const SkPain t& paint); 190 const SkPoint texCoords[4], SkXfermode* xmode, const SkPain t& paint);
191 void onDrawPaint(const SkPaint&) SK_OVERRIDE; 191 void onDrawPaint(const SkPaint&) override;
192 192
193 void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; 193 void onDrawRect(const SkRect&, const SkPaint&) override;
194 void onDrawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; 194 void onDrawOval(const SkRect&, const SkPaint&) override;
195 void onDrawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; 195 void onDrawRRect(const SkRRect&, const SkPaint&) override;
196 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) SK_OVERRIDE; 196 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override;
197 void onDrawVertices(VertexMode vmode, int vertexCount, 197 void onDrawVertices(VertexMode vmode, int vertexCount,
198 const SkPoint vertices[], const SkPoint texs[], 198 const SkPoint vertices[], const SkPoint texs[],
199 const SkColor colors[], SkXfermode* xmode, 199 const SkColor colors[], SkXfermode* xmode,
200 const uint16_t indices[], int indexCount, 200 const uint16_t indices[], int indexCount,
201 const SkPaint&) SK_OVERRIDE; 201 const SkPaint&) override;
202 void onDrawPath(const SkPath&, const SkPaint&) SK_OVERRIDE; 202 void onDrawPath(const SkPath&, const SkPaint&) override;
203 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) SK_OVERRIDE; 203 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override;
204 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 204 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
205 DrawBitmapRectFlags flags) SK_OVERRIDE; 205 DrawBitmapRectFlags flags) override;
206 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) SK_OVERRIDE; 206 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override;
207 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 207 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
208 const SkPaint*) SK_OVERRIDE; 208 const SkPaint*) override;
209 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 209 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
210 const SkPaint*) SK_OVERRIDE; 210 const SkPaint*) override;
211 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) SK_OVE RRIDE; 211 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de;
212 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; 212 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override;
213 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; 213 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override;
214 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; 214 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override;
215 void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE; 215 void onClipRegion(const SkRegion& region, SkRegion::Op) override;
216 216
217 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE RRIDE; 217 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
218 218
219 void markActiveCommands(int index); 219 void markActiveCommands(int index);
220 220
221 private: 221 private:
222 SkTDArray<SkDrawCommand*> fCommandVector; 222 SkTDArray<SkDrawCommand*> fCommandVector;
223 SkPicture* fPicture; 223 SkPicture* fPicture;
224 bool fFilter; 224 bool fFilter;
225 bool fMegaVizMode; 225 bool fMegaVizMode;
226 SkMatrix fUserMatrix; 226 SkMatrix fUserMatrix;
227 SkMatrix fMatrix; 227 SkMatrix fMatrix;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 bool lastClipStackData(const SkPath& devPath); 271 bool lastClipStackData(const SkPath& devPath);
272 void outputConicPoints(const SkPoint* pts, SkScalar weight); 272 void outputConicPoints(const SkPoint* pts, SkScalar weight);
273 void outputPoints(const SkPoint* pts, int count); 273 void outputPoints(const SkPoint* pts, int count);
274 void outputPointsCommon(const SkPoint* pts, int count); 274 void outputPointsCommon(const SkPoint* pts, int count);
275 void outputScalar(SkScalar num); 275 void outputScalar(SkScalar num);
276 276
277 typedef SkCanvas INHERITED; 277 typedef SkCanvas INHERITED;
278 }; 278 };
279 279
280 #endif 280 #endif
OLDNEW
« no previous file with comments | « src/utils/android/SkAndroidSDKCanvas.h ('k') | src/utils/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698