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

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

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/GrInOrderDrawBuffer.h ('k') | src/gpu/GrReorderCommandBuilder.h » ('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 #include "GrInOrderDrawBuffer.h" 8 #include "GrInOrderDrawBuffer.h"
9 9
10 GrInOrderDrawBuffer::GrInOrderDrawBuffer(GrContext* context) 10 GrInOrderDrawBuffer::GrInOrderDrawBuffer(GrContext* context)
11 : INHERITED(context) 11 : INHERITED(context)
12 , fCommands(SkNEW_ARGS(GrInOrderCommandBuilder, (context->getGpu()))) 12 , fCommands(GrCommandBuilder::Create(context->getGpu(), false))
13 , fPathIndexBuffer(kPathIdxBufferMinReserve * sizeof(char)/4) 13 , fPathIndexBuffer(kPathIdxBufferMinReserve * sizeof(char)/4)
14 , fPathTransformBuffer(kPathXformBufferMinReserve * sizeof(float)/4) 14 , fPathTransformBuffer(kPathXformBufferMinReserve * sizeof(float)/4)
15 , fPipelineBuffer(kPipelineBufferMinReserve) 15 , fPipelineBuffer(kPipelineBufferMinReserve)
16 , fDrawID(0) { 16 , fDrawID(0) {
17 } 17 }
18 18
19 GrInOrderDrawBuffer::~GrInOrderDrawBuffer() { 19 GrInOrderDrawBuffer::~GrInOrderDrawBuffer() {
20 this->reset(); 20 this->reset();
21 } 21 }
22 22
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 fPrevState->getPipeline()->isEqual(*state->getPipeline())) { 187 fPrevState->getPipeline()->isEqual(*state->getPipeline())) {
188 this->unallocState(state); 188 this->unallocState(state);
189 } else { 189 } else {
190 fPrevState.reset(state); 190 fPrevState.reset(state);
191 } 191 }
192 192
193 this->recordTraceMarkersIfNecessary( 193 this->recordTraceMarkersIfNecessary(
194 fCommands->recordXferBarrierIfNecessary(*fPrevState->getPipeline(), *this->caps())); 194 fCommands->recordXferBarrierIfNecessary(*fPrevState->getPipeline(), *this->caps()));
195 return fPrevState; 195 return fPrevState;
196 } 196 }
OLDNEW
« no previous file with comments | « src/gpu/GrInOrderDrawBuffer.h ('k') | src/gpu/GrReorderCommandBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698