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

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

Issue 16160020: Compact the clipstack for kReplace_Op'd geometry (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix nits Created 7 years, 6 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 | src/core/SkClipStack.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef SkClipStack_DEFINED 8 #ifndef SkClipStack_DEFINED
9 #define SkClipStack_DEFINED 9 #define SkClipStack_DEFINED
10 10
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 446
447 friend bool operator==(const ClipCallbackData& a, 447 friend bool operator==(const ClipCallbackData& a,
448 const ClipCallbackData& b) { 448 const ClipCallbackData& b) {
449 return a.fCallback == b.fCallback && a.fData == b.fData; 449 return a.fCallback == b.fCallback && a.fData == b.fData;
450 } 450 }
451 }; 451 };
452 452
453 mutable SkTDArray<ClipCallbackData> fCallbackData; 453 mutable SkTDArray<ClipCallbackData> fCallbackData;
454 454
455 /** 455 /**
456 * Restore the stack back to the specified save count.
457 */
458 void restoreTo(int saveCount);
459
460 /**
456 * Invoke all the purge callbacks passing in element's generation ID. 461 * Invoke all the purge callbacks passing in element's generation ID.
457 */ 462 */
458 void purgeClip(Element* element); 463 void purgeClip(Element* element);
459 464
460 /** 465 /**
461 * Return the next unique generation ID. 466 * Return the next unique generation ID.
462 */ 467 */
463 static int32_t GetNextGenID(); 468 static int32_t GetNextGenID();
464 }; 469 };
465 470
466 #endif 471 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkClipStack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698