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

Side by Side Diff: include/core/SkDevice.h

Issue 136973007: Deprecate two more functions using SK_ATTR_DEPRECATED macro. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | include/core/SkImageDecoder.h » ('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 2010 The Android Open Source Project 3 * Copyright 2010 The Android Open Source Project
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 SkDevice_DEFINED 10 #ifndef SkDevice_DEFINED
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 * passed in). 204 * passed in).
205 */ 205 */
206 virtual void setMatrixClip(const SkMatrix&, const SkRegion&, 206 virtual void setMatrixClip(const SkMatrix&, const SkRegion&,
207 const SkClipStack&) {}; 207 const SkClipStack&) {};
208 208
209 /** Clears the entire device to the specified color (including alpha). 209 /** Clears the entire device to the specified color (including alpha).
210 * Ignores the clip. 210 * Ignores the clip.
211 */ 211 */
212 virtual void clear(SkColor color) = 0; 212 virtual void clear(SkColor color) = 0;
213 213
214 /** 214 SK_ATTR_DEPRECATED("use clear() instead")
215 * Deprecated name for clear.
216 */
217 void eraseColor(SkColor eraseColor) { this->clear(eraseColor); } 215 void eraseColor(SkColor eraseColor) { this->clear(eraseColor); }
218 216
219 /** These are called inside the per-device-layer loop for each draw call. 217 /** These are called inside the per-device-layer loop for each draw call.
220 When these are called, we have already applied any saveLayer operations, 218 When these are called, we have already applied any saveLayer operations,
221 and are handling any looping from the paint, and any effects from the 219 and are handling any looping from the paint, and any effects from the
222 DrawFilter. 220 DrawFilter.
223 */ 221 */
224 virtual void drawPaint(const SkDraw&, const SkPaint& paint) = 0; 222 virtual void drawPaint(const SkDraw&, const SkPaint& paint) = 0;
225 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t, 223 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t,
226 const SkPoint[], const SkPaint& paint) = 0; 224 const SkPoint[], const SkPaint& paint) = 0;
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 SkMetaData* fMetaData; 421 SkMetaData* fMetaData;
424 422
425 #ifdef SK_DEBUG 423 #ifdef SK_DEBUG
426 bool fAttachedToCanvas; 424 bool fAttachedToCanvas;
427 #endif 425 #endif
428 426
429 typedef SkRefCnt INHERITED; 427 typedef SkRefCnt INHERITED;
430 }; 428 };
431 429
432 #endif 430 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkImageDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698