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

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

Issue 806853005: add private flag for sprite-as-bitmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years 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 | « no previous file | src/core/SkCanvas.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 * 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 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 SkPaint fDefaultPaint; 1138 SkPaint fDefaultPaint;
1139 bool fDone; 1139 bool fDone;
1140 }; 1140 };
1141 1141
1142 // don't call 1142 // don't call
1143 GrRenderTarget* internal_private_accessTopLayerRenderTarget(); 1143 GrRenderTarget* internal_private_accessTopLayerRenderTarget();
1144 1144
1145 // don't call 1145 // don't call
1146 static void Internal_Private_SetIgnoreSaveLayerBounds(bool); 1146 static void Internal_Private_SetIgnoreSaveLayerBounds(bool);
1147 static bool Internal_Private_GetIgnoreSaveLayerBounds(); 1147 static bool Internal_Private_GetIgnoreSaveLayerBounds();
1148 static void Internal_Private_SetTreatSpriteAsBitmap(bool);
1149 static bool Internal_Private_GetTreatSpriteAsBitmap();
1148 1150
1149 protected: 1151 protected:
1150 // default impl defers to getDevice()->newSurface(info) 1152 // default impl defers to getDevice()->newSurface(info)
1151 virtual SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&); 1153 virtual SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&);
1152 1154
1153 // default impl defers to its device 1155 // default impl defers to its device
1154 virtual const void* onPeekPixels(SkImageInfo*, size_t* rowBytes); 1156 virtual const void* onPeekPixels(SkImageInfo*, size_t* rowBytes);
1155 virtual void* onAccessTopLayerPixels(SkImageInfo*, size_t* rowBytes); 1157 virtual void* onAccessTopLayerPixels(SkImageInfo*, size_t* rowBytes);
1156 1158
1157 // Subclass save/restore notifiers. 1159 // Subclass save/restore notifiers.
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1480 1482
1481 class SkCanvasClipVisitor { 1483 class SkCanvasClipVisitor {
1482 public: 1484 public:
1483 virtual ~SkCanvasClipVisitor(); 1485 virtual ~SkCanvasClipVisitor();
1484 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1486 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1485 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1487 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1486 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1488 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1487 }; 1489 };
1488 1490
1489 #endif 1491 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698