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

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

Issue 1113313003: Create GrCommandBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cleanup 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 int fVerticesPerInstance; 366 int fVerticesPerInstance;
367 int fIndicesPerInstance; 367 int fIndicesPerInstance;
368 368
369 GrPendingIOResource<const GrVertexBuffer, kRead_GrIOType> fVertexBuffer; 369 GrPendingIOResource<const GrVertexBuffer, kRead_GrIOType> fVertexBuffer;
370 GrPendingIOResource<const GrIndexBuffer, kRead_GrIOType> fIndexBuffer; 370 GrPendingIOResource<const GrIndexBuffer, kRead_GrIOType> fIndexBuffer;
371 }; 371 };
372 372
373 bool programUnitTest(int maxStages); 373 bool programUnitTest(int maxStages);
374 374
375 protected: 375 protected:
376 friend class GrCommandBuilder; // for PipelineInfo
376 friend class GrTargetCommands; // for PipelineInfo 377 friend class GrTargetCommands; // for PipelineInfo
377 378
378 GrContext* getContext() { return fContext; } 379 GrContext* getContext() { return fContext; }
379 const GrContext* getContext() const { return fContext; } 380 const GrContext* getContext() const { return fContext; }
380 381
381 GrGpu* getGpu() { 382 GrGpu* getGpu() {
382 SkASSERT(fContext && fContext->getGpu()); 383 SkASSERT(fContext && fContext->getGpu());
383 return fContext->getGpu(); 384 return fContext->getGpu();
384 } 385 }
385 const GrGpu* getGpu() const { 386 const GrGpu* getGpu() const {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 virtual bool setupClip(GrPipelineBuilder*, 542 virtual bool setupClip(GrPipelineBuilder*,
542 GrPipelineBuilder::AutoRestoreFragmentProcessors*, 543 GrPipelineBuilder::AutoRestoreFragmentProcessors*,
543 GrPipelineBuilder::AutoRestoreStencil*, 544 GrPipelineBuilder::AutoRestoreStencil*,
544 GrScissorState* scissorState, 545 GrScissorState* scissorState,
545 const SkRect* devBounds) override; 546 const SkRect* devBounds) override;
546 547
547 typedef GrDrawTarget INHERITED; 548 typedef GrDrawTarget INHERITED;
548 }; 549 };
549 550
550 #endif 551 #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