OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "GrBatchTest.h" | 8 #include "GrBatchTest.h" |
9 #include "GrColor.h" | 9 #include "GrColor.h" |
10 #include "GrDrawContext.h" | 10 #include "GrDrawContext.h" |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 RETURN_IF_ABANDONED | 776 RETURN_IF_ABANDONED |
777 SkDEBUGCODE(this->validate();) | 777 SkDEBUGCODE(this->validate();) |
778 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); | 778 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); |
779 | 779 |
780 AutoCheckFlush acf(fDrawingManager); | 780 AutoCheckFlush acf(fDrawingManager); |
781 | 781 |
782 GrPipelineBuilder pipelineBuilder(paint, fRenderTarget.get(), clip); | 782 GrPipelineBuilder pipelineBuilder(paint, fRenderTarget.get(), clip); |
783 this->getDrawTarget()->drawBatch(pipelineBuilder, batch); | 783 this->getDrawTarget()->drawBatch(pipelineBuilder, batch); |
784 } | 784 } |
785 | 785 |
786 void GrDrawContext::drawPathBatch(const GrPipelineBuilder& pipelineBuilder, | |
787 GrDrawPathBatchBase* batch) { | |
788 ASSERT_SINGLE_OWNER | |
789 RETURN_IF_ABANDONED | |
790 SkDEBUGCODE(this->validate();) | |
791 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawPathBatch"); | |
792 | |
793 AutoCheckFlush acf(fDrawingManager); | |
794 | |
795 this->getDrawTarget()->drawPathBatch(pipelineBuilder, batch); | |
796 } | |
797 | |
798 void GrDrawContext::drawPath(const GrClip& clip, | 786 void GrDrawContext::drawPath(const GrClip& clip, |
799 const GrPaint& paint, | 787 const GrPaint& paint, |
800 const SkMatrix& viewMatrix, | 788 const SkMatrix& viewMatrix, |
801 const SkPath& path, | 789 const SkPath& path, |
802 const GrStrokeInfo& strokeInfo) { | 790 const GrStrokeInfo& strokeInfo) { |
803 ASSERT_SINGLE_OWNER | 791 ASSERT_SINGLE_OWNER |
804 RETURN_IF_ABANDONED | 792 RETURN_IF_ABANDONED |
805 SkDEBUGCODE(this->validate();) | 793 SkDEBUGCODE(this->validate();) |
806 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawPath"); | 794 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawPath"); |
807 | 795 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1034 } | 1022 } |
1035 | 1023 |
1036 void GrDrawContext::drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* b
atch) { | 1024 void GrDrawContext::drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* b
atch) { |
1037 ASSERT_SINGLE_OWNER | 1025 ASSERT_SINGLE_OWNER |
1038 RETURN_IF_ABANDONED | 1026 RETURN_IF_ABANDONED |
1039 SkDEBUGCODE(this->validate();) | 1027 SkDEBUGCODE(this->validate();) |
1040 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); | 1028 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); |
1041 | 1029 |
1042 this->getDrawTarget()->drawBatch(*pipelineBuilder, batch); | 1030 this->getDrawTarget()->drawBatch(*pipelineBuilder, batch); |
1043 } | 1031 } |
OLD | NEW |