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

Side by Side Diff: src/gpu/GrDrawContext.cpp

Issue 1966763002: Eliminate special case nvpr batch handling (Closed) Base URL: https://skia.googlesource.com/skia.git@reallyupload_userstencil
Patch Set: fixes Created 4 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 | « include/gpu/GrDrawContext.h ('k') | src/gpu/GrDrawTarget.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 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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 RETURN_IF_ABANDONED 775 RETURN_IF_ABANDONED
776 SkDEBUGCODE(this->validate();) 776 SkDEBUGCODE(this->validate();)
777 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); 777 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch");
778 778
779 AutoCheckFlush acf(fDrawingManager); 779 AutoCheckFlush acf(fDrawingManager);
780 780
781 GrPipelineBuilder pipelineBuilder(paint, fRenderTarget.get(), clip); 781 GrPipelineBuilder pipelineBuilder(paint, fRenderTarget.get(), clip);
782 this->getDrawTarget()->drawBatch(pipelineBuilder, batch); 782 this->getDrawTarget()->drawBatch(pipelineBuilder, batch);
783 } 783 }
784 784
785 void GrDrawContext::drawPathBatch(const GrPipelineBuilder& pipelineBuilder,
786 GrDrawPathBatchBase* batch) {
787 ASSERT_SINGLE_OWNER
788 RETURN_IF_ABANDONED
789 SkDEBUGCODE(this->validate();)
790 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawPathBatch");
791
792 AutoCheckFlush acf(fDrawingManager);
793
794 this->getDrawTarget()->drawPathBatch(pipelineBuilder, batch);
795 }
796
797 void GrDrawContext::drawPath(const GrClip& clip, 785 void GrDrawContext::drawPath(const GrClip& clip,
798 const GrPaint& paint, 786 const GrPaint& paint,
799 const SkMatrix& viewMatrix, 787 const SkMatrix& viewMatrix,
800 const SkPath& path, 788 const SkPath& path,
801 const GrStyle& style) { 789 const GrStyle& style) {
802 ASSERT_SINGLE_OWNER 790 ASSERT_SINGLE_OWNER
803 RETURN_IF_ABANDONED 791 RETURN_IF_ABANDONED
804 SkDEBUGCODE(this->validate();) 792 SkDEBUGCODE(this->validate();)
805 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawPath"); 793 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawPath");
806 794
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 } 1021 }
1034 1022
1035 void GrDrawContext::drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* b atch) { 1023 void GrDrawContext::drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* b atch) {
1036 ASSERT_SINGLE_OWNER 1024 ASSERT_SINGLE_OWNER
1037 RETURN_IF_ABANDONED 1025 RETURN_IF_ABANDONED
1038 SkDEBUGCODE(this->validate();) 1026 SkDEBUGCODE(this->validate();)
1039 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); 1027 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch");
1040 1028
1041 this->getDrawTarget()->drawBatch(*pipelineBuilder, batch); 1029 this->getDrawTarget()->drawBatch(*pipelineBuilder, batch);
1042 } 1030 }
OLDNEW
« no previous file with comments | « include/gpu/GrDrawContext.h ('k') | src/gpu/GrDrawTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698