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

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

Issue 1450093002: increase pre-allocated MCRecs to match common android calling pattern (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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 | no next file » | 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 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1333 1333
1334 class MCRec; 1334 class MCRec;
1335 1335
1336 SkAutoTUnref<SkClipStack> fClipStack; 1336 SkAutoTUnref<SkClipStack> fClipStack;
1337 SkDeque fMCStack; 1337 SkDeque fMCStack;
1338 // points to top of stack 1338 // points to top of stack
1339 MCRec* fMCRec; 1339 MCRec* fMCRec;
1340 // the first N recs that can fit here mean we won't call malloc 1340 // the first N recs that can fit here mean we won't call malloc
1341 enum { 1341 enum {
1342 kMCRecSize = 128, // most recent measurement 1342 kMCRecSize = 128, // most recent measurement
1343 kMCRecCount = 8, // common depth for save/restores 1343 kMCRecCount = 32, // common depth for save/restores
1344 kDeviceCMSize = 136, // most recent measurement 1344 kDeviceCMSize = 136, // most recent measurement
1345 }; 1345 };
1346 intptr_t fMCRecStorage[kMCRecSize * kMCRecCount / sizeof(intptr_t)]; 1346 intptr_t fMCRecStorage[kMCRecSize * kMCRecCount / sizeof(intptr_t)];
1347 intptr_t fDeviceCMStorage[kDeviceCMSize / sizeof(intptr_t)]; 1347 intptr_t fDeviceCMStorage[kDeviceCMSize / sizeof(intptr_t)];
1348 1348
1349 const SkSurfaceProps fProps; 1349 const SkSurfaceProps fProps;
1350 1350
1351 int fSaveCount; // value returned by getSaveCount() 1351 int fSaveCount; // value returned by getSaveCount()
1352 1352
1353 SkMetaData* fMetaData; 1353 SkMetaData* fMetaData;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1561 1561
1562 class SkCanvasClipVisitor { 1562 class SkCanvasClipVisitor {
1563 public: 1563 public:
1564 virtual ~SkCanvasClipVisitor(); 1564 virtual ~SkCanvasClipVisitor();
1565 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1565 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1566 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1566 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1567 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1567 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1568 }; 1568 };
1569 1569
1570 #endif 1570 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698