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

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

Issue 203203004: Consolidate SkCanvas matrix virtuals. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Updated per review. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | include/utils/SkDeferredCanvas.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 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkCanvas_DEFINED 8 #ifndef SkCanvas_DEFINED
9 #define SkCanvas_DEFINED 9 #define SkCanvas_DEFINED
10 10
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 // Overriders should call the corresponding INHERITED method up the inherita nce chain. 1239 // Overriders should call the corresponding INHERITED method up the inherita nce chain.
1240 // willSaveLayer()'s return value may suppress full layer allocation. 1240 // willSaveLayer()'s return value may suppress full layer allocation.
1241 enum SaveLayerStrategy { 1241 enum SaveLayerStrategy {
1242 kFullLayer_SaveLayerStrategy, 1242 kFullLayer_SaveLayerStrategy,
1243 kNoLayer_SaveLayerStrategy 1243 kNoLayer_SaveLayerStrategy
1244 }; 1244 };
1245 virtual void willSave(SaveFlags); 1245 virtual void willSave(SaveFlags);
1246 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags); 1246 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags);
1247 virtual void willRestore(); 1247 virtual void willRestore();
1248 1248
1249 virtual void didTranslate(SkScalar, SkScalar);
1250 virtual void didScale(SkScalar, SkScalar);
1251 virtual void didRotate(SkScalar);
1252 virtual void didSkew(SkScalar, SkScalar);
1253 virtual void didConcat(const SkMatrix&); 1249 virtual void didConcat(const SkMatrix&);
1254 virtual void didSetMatrix(const SkMatrix&); 1250 virtual void didSetMatrix(const SkMatrix&);
1255 1251
1256 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&); 1252 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&);
1257 1253
1258 enum ClipEdgeStyle { 1254 enum ClipEdgeStyle {
1259 kHard_ClipEdgeStyle, 1255 kHard_ClipEdgeStyle,
1260 kSoft_ClipEdgeStyle 1256 kSoft_ClipEdgeStyle
1261 }; 1257 };
1262 1258
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 bool asROBitmap(SkBitmap*) const; 1498 bool asROBitmap(SkBitmap*) const;
1503 1499
1504 private: 1500 private:
1505 SkBitmap fBitmap; // used if peekPixels() fails 1501 SkBitmap fBitmap; // used if peekPixels() fails
1506 const void* fAddr; // NULL on failure 1502 const void* fAddr; // NULL on failure
1507 SkImageInfo fInfo; 1503 SkImageInfo fInfo;
1508 size_t fRowBytes; 1504 size_t fRowBytes;
1509 }; 1505 };
1510 1506
1511 #endif 1507 #endif
OLDNEW
« no previous file with comments | « no previous file | include/utils/SkDeferredCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698