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

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

Issue 1073943004: Join non-overlapping Xfer barriers (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_4_implementxferbarriers
Patch Set: Created 5 years, 8 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 | « no previous file | src/gpu/GrDrawTarget.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 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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 PipelineInfo(GrPipelineBuilder* pipelineBuilder, GrScissorState* scissor , 643 PipelineInfo(GrPipelineBuilder* pipelineBuilder, GrScissorState* scissor ,
644 const GrPrimitiveProcessor* primProc, 644 const GrPrimitiveProcessor* primProc,
645 const SkRect* devBounds, GrDrawTarget* target); 645 const SkRect* devBounds, GrDrawTarget* target);
646 646
647 PipelineInfo(GrPipelineBuilder* pipelineBuilder, GrScissorState* scissor , 647 PipelineInfo(GrPipelineBuilder* pipelineBuilder, GrScissorState* scissor ,
648 const GrBatch* batch, const SkRect* devBounds, 648 const GrBatch* batch, const SkRect* devBounds,
649 GrDrawTarget* target); 649 GrDrawTarget* target);
650 650
651 // Returns false if an early reject was detected and the draw can be ski pped. 651 // Returns false if an early reject was detected and the draw can be ski pped.
652 bool getConservativeDrawBounds(SkIRect*) const; 652 bool getConservativeDrawBounds(SkIRect*) const;
653 void getQuickDrawBounds(SkIRect*) const;
653 654
654 bool hasCustomDstCopy() const { return SkToBool(fCustomDstCopy.texture() ); } 655 bool hasCustomDstCopy() const { return SkToBool(fCustomDstCopy.texture() ); }
655 656
656 const GrDeviceCoordTexture* getCustomDstCopy() const { 657 const GrDeviceCoordTexture* getCustomDstCopy() const {
657 return this->hasCustomDstCopy() ? &fCustomDstCopy : NULL; 658 return this->hasCustomDstCopy() ? &fCustomDstCopy : NULL;
658 } 659 }
659
660 bool willBlendWithDst(const GrPrimitiveProcessor* primProc) const {
661 return fPipelineBuilder->willBlendWithDst(primProc);
662 }
663 private: 660 private:
664 friend class GrDrawTarget; 661 friend class GrDrawTarget;
665 662
666 bool mustSkipDraw() const { return (NULL == fPipelineBuilder); } 663 bool mustSkipDraw() const { return (NULL == fPipelineBuilder); }
667 664
668 GrPipelineBuilder* fPipelineBuilder; 665 GrPipelineBuilder* fPipelineBuilder;
669 GrScissorState* fScissor; 666 GrScissorState* fScissor;
670 bool fHasDrawBounds; 667 bool fHasDrawBounds;
671 SkRect fDrawBounds; 668 SkRect fDrawBounds;
672 GrProcOptInfo fColorPOI; 669 GrProcOptInfo fColorPOI;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 virtual bool setupClip(GrPipelineBuilder*, 844 virtual bool setupClip(GrPipelineBuilder*,
848 GrPipelineBuilder::AutoRestoreFragmentProcessors*, 845 GrPipelineBuilder::AutoRestoreFragmentProcessors*,
849 GrPipelineBuilder::AutoRestoreStencil*, 846 GrPipelineBuilder::AutoRestoreStencil*,
850 GrScissorState* scissorState, 847 GrScissorState* scissorState,
851 const SkRect* devBounds) override; 848 const SkRect* devBounds) override;
852 849
853 typedef GrDrawTarget INHERITED; 850 typedef GrDrawTarget INHERITED;
854 }; 851 };
855 852
856 #endif 853 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698