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

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

Issue 138013009: Culling API (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Rebased, fCullOffsetStack decl -> unconditional Created 6 years, 10 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
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
11 //#define SK_DEBUG_SIZE 11 //#define SK_DEBUG_SIZE
12 12
13 #include "SkBitmapHeap.h" 13 #include "SkBitmapHeap.h"
14 #include "SkChecksum.h" 14 #include "SkChecksum.h"
15 #include "SkChunkAlloc.h" 15 #include "SkChunkAlloc.h"
16 #include "SkReadBuffer.h" 16 #include "SkReadBuffer.h"
17 #include "SkWriteBuffer.h" 17 #include "SkWriteBuffer.h"
18 #include "SkPaint.h" 18 #include "SkPaint.h"
19 #include "SkPicture.h" 19 #include "SkPicture.h"
20 #include "SkPtrRecorder.h" 20 #include "SkPtrRecorder.h"
21 #include "SkTDynamicHash.h" 21 #include "SkTDynamicHash.h"
22 #include "SkTRefArray.h" 22 #include "SkTRefArray.h"
23 23
24 enum DrawType { 24 enum DrawType {
25 UNUSED, 25 UNUSED,
26 CLIP_PATH, 26 CLIP_PATH,
27 CLIP_REGION, 27 CLIP_REGION,
28 CLIP_RECT, 28 CLIP_RECT,
29 CLIP_RRECT, 29 CLIP_RRECT,
robertphillips 2014/02/25 15:58:41 Move to end so old skps will remain valid?!
f(malita) 2014/02/25 16:50:28 Will do.
30 PUSH_CULL,
31 POP_CULL,
30 CONCAT, 32 CONCAT,
31 DRAW_BITMAP, 33 DRAW_BITMAP,
32 DRAW_BITMAP_MATRIX, 34 DRAW_BITMAP_MATRIX,
33 DRAW_BITMAP_NINE, 35 DRAW_BITMAP_NINE,
34 DRAW_BITMAP_RECT_TO_RECT, 36 DRAW_BITMAP_RECT_TO_RECT,
35 DRAW_CLEAR, 37 DRAW_CLEAR,
36 DRAW_DATA, 38 DRAW_DATA,
37 DRAW_OVAL, 39 DRAW_OVAL,
38 DRAW_PAINT, 40 DRAW_PAINT,
39 DRAW_PATH, 41 DRAW_PATH,
(...skipping 556 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

Powered by Google App Engine
This is Rietveld 408576698