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

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: Funnel everything through concat() 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 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 // Overriders should call the corresponding INHERITED method up the inherita nce chain. 1231 // Overriders should call the corresponding INHERITED method up the inherita nce chain.
1232 // willSaveLayer()'s return value may suppress full layer allocation. 1232 // willSaveLayer()'s return value may suppress full layer allocation.
1233 enum SaveLayerStrategy { 1233 enum SaveLayerStrategy {
1234 kFullLayer_SaveLayerStrategy, 1234 kFullLayer_SaveLayerStrategy,
1235 kNoLayer_SaveLayerStrategy 1235 kNoLayer_SaveLayerStrategy
1236 }; 1236 };
1237 virtual void willSave(SaveFlags); 1237 virtual void willSave(SaveFlags);
1238 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags); 1238 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags);
1239 virtual void willRestore(); 1239 virtual void willRestore();
1240 1240
1241 virtual void didTranslate(SkScalar, SkScalar);
1242 virtual void didScale(SkScalar, SkScalar);
1243 virtual void didRotate(SkScalar);
1244 virtual void didSkew(SkScalar, SkScalar);
1245 virtual void didConcat(const SkMatrix&); 1241 virtual void didConcat(const SkMatrix&);
1246 virtual void didSetMatrix(const SkMatrix&); 1242 virtual void didSetMatrix(const SkMatrix&);
1247 1243
1248 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&); 1244 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&);
1249 1245
1250 enum ClipEdgeStyle { 1246 enum ClipEdgeStyle {
1251 kHard_ClipEdgeStyle, 1247 kHard_ClipEdgeStyle,
1252 kSoft_ClipEdgeStyle 1248 kSoft_ClipEdgeStyle
1253 }; 1249 };
1254 1250
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 bool asROBitmap(SkBitmap*) const; 1490 bool asROBitmap(SkBitmap*) const;
1495 1491
1496 private: 1492 private:
1497 SkBitmap fBitmap; // used if peekPixels() fails 1493 SkBitmap fBitmap; // used if peekPixels() fails
1498 const void* fAddr; // NULL on failure 1494 const void* fAddr; // NULL on failure
1499 SkImageInfo fInfo; 1495 SkImageInfo fInfo;
1500 size_t fRowBytes; 1496 size_t fRowBytes;
1501 }; 1497 };
1502 1498
1503 #endif 1499 #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