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

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

Issue 1117213003: clean up pre-storage in canvas (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
« 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 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 1252
1253 private: 1253 private:
1254 class MCRec; 1254 class MCRec;
1255 1255
1256 SkAutoTUnref<SkClipStack> fClipStack; 1256 SkAutoTUnref<SkClipStack> fClipStack;
1257 SkDeque fMCStack; 1257 SkDeque fMCStack;
1258 // points to top of stack 1258 // points to top of stack
1259 MCRec* fMCRec; 1259 MCRec* fMCRec;
1260 // the first N recs that can fit here mean we won't call malloc 1260 // the first N recs that can fit here mean we won't call malloc
1261 enum { 1261 enum {
1262 kMCRecSize = 136, // most recent measurement 1262 kMCRecSize = 128, // most recent measurement
1263 kMCRecCount = 8, // common depth for save/restores 1263 kMCRecCount = 8, // common depth for save/restores
1264 kDeviceCMSize = 136, // most recent measurement
1264 }; 1265 };
1265 intptr_t fMCRecStorage[kMCRecSize * kMCRecCount / sizeof(intptr_t)]; 1266 intptr_t fMCRecStorage[kMCRecSize * kMCRecCount / sizeof(intptr_t)];
1266 // for our base DeviceCM 1267 intptr_t fDeviceCMStorage[kDeviceCMSize / sizeof(intptr_t)];
1267 intptr_t fBaseLayerStorage[kMCRecSize / sizeof(intptr_t)];
1268 1268
1269 const SkSurfaceProps fProps; 1269 const SkSurfaceProps fProps;
1270 1270
1271 int fSaveCount; // value returned by getSaveCount() 1271 int fSaveCount; // value returned by getSaveCount()
1272 1272
1273 SkMetaData* fMetaData; 1273 SkMetaData* fMetaData;
1274 1274
1275 SkSurface_Base* fSurfaceBase; 1275 SkSurface_Base* fSurfaceBase;
1276 SkSurface_Base* getSurfaceBase() const { return fSurfaceBase; } 1276 SkSurface_Base* getSurfaceBase() const { return fSurfaceBase; }
1277 void setSurfaceBase(SkSurface_Base* sb) { 1277 void setSurfaceBase(SkSurface_Base* sb) {
(...skipping 222 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 | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698