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

Side by Side Diff: src/gpu/GrInOrderDrawBuffer.h

Issue 1129943004: Initial CL to create Reorder command builder behind a flag (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more tidying 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 | « src/gpu/GrDrawTarget.h ('k') | src/gpu/GrInOrderDrawBuffer.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 2011 Google Inc. 2 * Copyright 2011 Google Inc.
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 GrInOrderDrawBuffer_DEFINED 8 #ifndef GrInOrderDrawBuffer_DEFINED
9 #define GrInOrderDrawBuffer_DEFINED 9 #define GrInOrderDrawBuffer_DEFINED
10 10
11 #include "GrDrawTarget.h" 11 #include "GrDrawTarget.h"
12 #include "GrInOrderCommandBuilder.h" 12 #include "GrCommandBuilder.h"
13 #include "SkChunkAlloc.h" 13 #include "SkChunkAlloc.h"
14 14
15 /** 15 /**
16 * GrInOrderDrawBuffer is an implementation of GrDrawTarget that queues up draws for eventual 16 * GrInOrderDrawBuffer is an implementation of GrDrawTarget that queues up draws for eventual
17 * playback into a GrGpu. In theory one draw buffer could playback into another. When index or 17 * playback into a GrGpu. In theory one draw buffer could playback into another. When index or
18 * vertex buffers are used as geometry sources it is the callers the draw buffer only holds 18 * vertex buffers are used as geometry sources it is the callers the draw buffer only holds
19 * references to the buffers. It is the callers responsibility to ensure that th e data is still 19 * references to the buffers. It is the callers responsibility to ensure that th e data is still
20 * valid when the draw buffer is played back into a GrGpu. Similarly, it is the caller's 20 * valid when the draw buffer is played back into a GrGpu. Similarly, it is the caller's
21 * responsibility to ensure that all referenced textures, buffers, and render-ta rgets are associated 21 * responsibility to ensure that all referenced textures, buffers, and render-ta rgets are associated
22 * in the GrGpu object that the buffer is played back into. The buffer requires VB and IB pools to 22 * in the GrGpu object that the buffer is played back into. The buffer requires VB and IB pools to
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 SkChunkAlloc fPathIndexBuffer; 143 SkChunkAlloc fPathIndexBuffer;
144 SkChunkAlloc fPathTransformBuffer; 144 SkChunkAlloc fPathTransformBuffer;
145 SkChunkAlloc fPipelineBuffer; 145 SkChunkAlloc fPipelineBuffer;
146 uint32_t fDrawID; 146 uint32_t fDrawID;
147 SkAutoTUnref<State> fPrevState; 147 SkAutoTUnref<State> fPrevState;
148 148
149 typedef GrClipTarget INHERITED; 149 typedef GrClipTarget INHERITED;
150 }; 150 };
151 151
152 #endif 152 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.h ('k') | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698