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

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: 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') | src/core/SkPictureRecord.cpp » ('J')
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 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 // Overriders should call the corresponding INHERITED method up the inherita nce chain. 1238 // Overriders should call the corresponding INHERITED method up the inherita nce chain.
1239 // willSaveLayer()'s return value may suppress full layer allocation. 1239 // willSaveLayer()'s return value may suppress full layer allocation.
1240 enum SaveLayerStrategy { 1240 enum SaveLayerStrategy {
1241 kFullLayer_SaveLayerStrategy, 1241 kFullLayer_SaveLayerStrategy,
1242 kNoLayer_SaveLayerStrategy 1242 kNoLayer_SaveLayerStrategy
1243 }; 1243 };
1244 virtual void willSave(SaveFlags); 1244 virtual void willSave(SaveFlags);
1245 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags); 1245 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags);
1246 virtual void willRestore(); 1246 virtual void willRestore();
1247 1247
1248 virtual void didTranslate(SkScalar, SkScalar);
1249 virtual void didScale(SkScalar, SkScalar);
1250 virtual void didRotate(SkScalar);
1251 virtual void didSkew(SkScalar, SkScalar);
1252 virtual void didConcat(const SkMatrix&); 1248 virtual void didConcat(const SkMatrix&);
1253 virtual void didSetMatrix(const SkMatrix&); 1249 virtual void didSetMatrix(const SkMatrix&);
1254 1250
1255 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&); 1251 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&);
1256 1252
1257 enum ClipEdgeStyle { 1253 enum ClipEdgeStyle {
1258 kHard_ClipEdgeStyle, 1254 kHard_ClipEdgeStyle,
1259 kSoft_ClipEdgeStyle 1255 kSoft_ClipEdgeStyle
1260 }; 1256 };
1261 1257
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 bool asROBitmap(SkBitmap*) const; 1494 bool asROBitmap(SkBitmap*) const;
1499 1495
1500 private: 1496 private:
1501 SkBitmap fBitmap; // used if peekPixels() fails 1497 SkBitmap fBitmap; // used if peekPixels() fails
1502 const void* fAddr; // NULL on failure 1498 const void* fAddr; // NULL on failure
1503 SkImageInfo fInfo; 1499 SkImageInfo fInfo;
1504 size_t fRowBytes; 1500 size_t fRowBytes;
1505 }; 1501 };
1506 1502
1507 #endif 1503 #endif
OLDNEW
« no previous file with comments | « no previous file | include/utils/SkDeferredCanvas.h » ('j') | src/core/SkPictureRecord.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698