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

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

Issue 1118403003: create GrInOrderCommandBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@rect-batch
Patch Set: 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/GrInOrderCommandBuilder.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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 SkRect* fDevBounds; 306 SkRect* fDevBounds;
307 307
308 GrPendingIOResource<const GrVertexBuffer, kRead_GrIOType> fVertexBuffer; 308 GrPendingIOResource<const GrVertexBuffer, kRead_GrIOType> fVertexBuffer;
309 GrPendingIOResource<const GrIndexBuffer, kRead_GrIOType> fIndexBuffer; 309 GrPendingIOResource<const GrIndexBuffer, kRead_GrIOType> fIndexBuffer;
310 }; 310 };
311 311
312 bool programUnitTest(int maxStages); 312 bool programUnitTest(int maxStages);
313 313
314 protected: 314 protected:
315 friend class GrCommandBuilder; // for PipelineInfo 315 friend class GrCommandBuilder; // for PipelineInfo
316 friend class GrInOrderCommandBuilder; // for PipelineInfo
316 friend class GrTargetCommands; // for PipelineInfo 317 friend class GrTargetCommands; // for PipelineInfo
317 318
318 GrContext* getContext() { return fContext; } 319 GrContext* getContext() { return fContext; }
319 const GrContext* getContext() const { return fContext; } 320 const GrContext* getContext() const { return fContext; }
320 321
321 GrGpu* getGpu() { 322 GrGpu* getGpu() {
322 SkASSERT(fContext && fContext->getGpu()); 323 SkASSERT(fContext && fContext->getGpu());
323 return fContext->getGpu(); 324 return fContext->getGpu();
324 } 325 }
325 const GrGpu* getGpu() const { 326 const GrGpu* getGpu() const {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 virtual bool setupClip(GrPipelineBuilder*, 474 virtual bool setupClip(GrPipelineBuilder*,
474 GrPipelineBuilder::AutoRestoreFragmentProcessors*, 475 GrPipelineBuilder::AutoRestoreFragmentProcessors*,
475 GrPipelineBuilder::AutoRestoreStencil*, 476 GrPipelineBuilder::AutoRestoreStencil*,
476 GrScissorState* scissorState, 477 GrScissorState* scissorState,
477 const SkRect* devBounds) override; 478 const SkRect* devBounds) override;
478 479
479 typedef GrDrawTarget INHERITED; 480 typedef GrDrawTarget INHERITED;
480 }; 481 };
481 482
482 #endif 483 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrCommandBuilder.cpp ('k') | src/gpu/GrInOrderCommandBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698