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

Side by Side Diff: src/gpu/GrDrawTarget.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/GrCommandBuilder.cpp ('k') | src/gpu/GrInOrderDrawBuffer.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 2010 Google Inc. 2 * Copyright 2010 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 GrDrawTarget_DEFINED 8 #ifndef GrDrawTarget_DEFINED
9 #define GrDrawTarget_DEFINED 9 #define GrDrawTarget_DEFINED
10 10
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // so that should be okay 217 // so that should be okay
218 }; 218 };
219 219
220 virtual DrawToken getCurrentDrawToken() { return DrawToken(this, 0); } 220 virtual DrawToken getCurrentDrawToken() { return DrawToken(this, 0); }
221 221
222 bool programUnitTest(int maxStages); 222 bool programUnitTest(int maxStages);
223 223
224 protected: 224 protected:
225 friend class GrCommandBuilder; // for PipelineInfo 225 friend class GrCommandBuilder; // for PipelineInfo
226 friend class GrInOrderCommandBuilder; // for PipelineInfo 226 friend class GrInOrderCommandBuilder; // for PipelineInfo
227 friend class GrReorderCommandBuilder; // for PipelineInfo
227 friend class GrTargetCommands; // for PipelineInfo 228 friend class GrTargetCommands; // for PipelineInfo
228 229
229 GrContext* getContext() { return fContext; } 230 GrContext* getContext() { return fContext; }
230 const GrContext* getContext() const { return fContext; } 231 const GrContext* getContext() const { return fContext; }
231 232
232 GrGpu* getGpu() { 233 GrGpu* getGpu() {
233 SkASSERT(fContext && fContext->getGpu()); 234 SkASSERT(fContext && fContext->getGpu());
234 return fContext->getGpu(); 235 return fContext->getGpu();
235 } 236 }
236 const GrGpu* getGpu() const { 237 const GrGpu* getGpu() const {
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 virtual bool setupClip(GrPipelineBuilder*, 378 virtual bool setupClip(GrPipelineBuilder*,
378 GrPipelineBuilder::AutoRestoreFragmentProcessors*, 379 GrPipelineBuilder::AutoRestoreFragmentProcessors*,
379 GrPipelineBuilder::AutoRestoreStencil*, 380 GrPipelineBuilder::AutoRestoreStencil*,
380 GrScissorState* scissorState, 381 GrScissorState* scissorState,
381 const SkRect* devBounds) override; 382 const SkRect* devBounds) override;
382 383
383 typedef GrDrawTarget INHERITED; 384 typedef GrDrawTarget INHERITED;
384 }; 385 };
385 386
386 #endif 387 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrCommandBuilder.cpp ('k') | src/gpu/GrInOrderDrawBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698