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

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

Issue 1155443004: change internals over to SkPixmap and stop using accessBitmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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
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 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 static void Internal_Private_SetIgnoreSaveLayerBounds(bool); 1149 static void Internal_Private_SetIgnoreSaveLayerBounds(bool);
1150 static bool Internal_Private_GetIgnoreSaveLayerBounds(); 1150 static bool Internal_Private_GetIgnoreSaveLayerBounds();
1151 static void Internal_Private_SetTreatSpriteAsBitmap(bool); 1151 static void Internal_Private_SetTreatSpriteAsBitmap(bool);
1152 static bool Internal_Private_GetTreatSpriteAsBitmap(); 1152 static bool Internal_Private_GetTreatSpriteAsBitmap();
1153 1153
1154 protected: 1154 protected:
1155 // default impl defers to getDevice()->newSurface(info) 1155 // default impl defers to getDevice()->newSurface(info)
1156 virtual SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&); 1156 virtual SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&);
1157 1157
1158 // default impl defers to its device 1158 // default impl defers to its device
1159 virtual const void* onPeekPixels(SkImageInfo*, size_t* rowBytes); 1159 virtual bool onPeekPixels(SkPixmap*);
1160 virtual void* onAccessTopLayerPixels(SkImageInfo*, size_t* rowBytes); 1160 virtual bool onAccessTopLayerPixels(SkPixmap*);
1161 1161
1162 // Subclass save/restore notifiers. 1162 // Subclass save/restore notifiers.
1163 // Overriders should call the corresponding INHERITED method up the inherita nce chain. 1163 // Overriders should call the corresponding INHERITED method up the inherita nce chain.
1164 // willSaveLayer()'s return value may suppress full layer allocation. 1164 // willSaveLayer()'s return value may suppress full layer allocation.
1165 enum SaveLayerStrategy { 1165 enum SaveLayerStrategy {
1166 kFullLayer_SaveLayerStrategy, 1166 kFullLayer_SaveLayerStrategy,
1167 kNoLayer_SaveLayerStrategy 1167 kNoLayer_SaveLayerStrategy
1168 }; 1168 };
1169 1169
1170 virtual void willSave() {} 1170 virtual void willSave() {}
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 1500
1501 class SkCanvasClipVisitor { 1501 class SkCanvasClipVisitor {
1502 public: 1502 public:
1503 virtual ~SkCanvasClipVisitor(); 1503 virtual ~SkCanvasClipVisitor();
1504 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1504 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1505 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1505 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1506 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1506 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1507 }; 1507 };
1508 1508
1509 #endif 1509 #endif
OLDNEW
« no previous file with comments | « include/core/SkBitmapDevice.h ('k') | include/core/SkDevice.h » ('j') | src/core/SkPixmap.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698