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

Side by Side Diff: src/core/SkPictureFlat.h

Issue 138013009: Culling API (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Updated per comments. Created 6 years, 9 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 | « src/core/SkCanvas.cpp ('k') | src/core/SkPicturePlayback.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 SkPictureFlat_DEFINED 8 #ifndef SkPictureFlat_DEFINED
9 #define SkPictureFlat_DEFINED 9 #define SkPictureFlat_DEFINED
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 SET_MATRIX, 58 SET_MATRIX,
59 SKEW, 59 SKEW,
60 TRANSLATE, 60 TRANSLATE,
61 NOOP, 61 NOOP,
62 BEGIN_COMMENT_GROUP, 62 BEGIN_COMMENT_GROUP,
63 COMMENT, 63 COMMENT,
64 END_COMMENT_GROUP, 64 END_COMMENT_GROUP,
65 65
66 // new ops -- feel free to re-alphabetize on next version bump 66 // new ops -- feel free to re-alphabetize on next version bump
67 DRAW_DRRECT, 67 DRAW_DRRECT,
68 PUSH_CULL,
69 POP_CULL,
68 70
69 LAST_DRAWTYPE_ENUM = DRAW_DRRECT 71 LAST_DRAWTYPE_ENUM = POP_CULL
70 }; 72 };
71 73
72 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* 74 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP*
73 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; 75 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1;
74 76
75 enum DrawVertexFlags { 77 enum DrawVertexFlags {
76 DRAW_VERTICES_HAS_TEXS = 0x01, 78 DRAW_VERTICES_HAS_TEXS = 0x01,
77 DRAW_VERTICES_HAS_COLORS = 0x02, 79 DRAW_VERTICES_HAS_COLORS = 0x02,
78 DRAW_VERTICES_HAS_INDICES = 0x04, 80 DRAW_VERTICES_HAS_INDICES = 0x04,
79 DRAW_VERTICES_HAS_XFER = 0x08, 81 DRAW_VERTICES_HAS_XFER = 0x08,
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 } 598 }
597 599
598 private: 600 private:
599 SkChunkAlloc fHeap; 601 SkChunkAlloc fHeap;
600 SkAutoTUnref<SkRefCntSet> fTypefaceSet; 602 SkAutoTUnref<SkRefCntSet> fTypefaceSet;
601 void* fLastAllocated; 603 void* fLastAllocated;
602 mutable SkTypefacePlayback fTypefacePlayback; 604 mutable SkTypefacePlayback fTypefacePlayback;
603 }; 605 };
604 606
605 #endif 607 #endif
OLDNEW
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698