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

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

Issue 2324473002: Move prepareForExternalIO implementation from GrContext to GrDrawingManager (Closed)
Patch Set: Created 4 years, 3 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/GrContext.cpp ('k') | src/gpu/GrDrawingManager.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 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 } 1108 }
1109 1109
1110 void GrDrawContext::prepareForExternalIO() { 1110 void GrDrawContext::prepareForExternalIO() {
1111 ASSERT_SINGLE_OWNER 1111 ASSERT_SINGLE_OWNER
1112 RETURN_IF_ABANDONED 1112 RETURN_IF_ABANDONED
1113 SkDEBUGCODE(this->validate();) 1113 SkDEBUGCODE(this->validate();)
1114 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::prepareForExternalIO" ); 1114 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::prepareForExternalIO" );
1115 1115
1116 ASSERT_OWNED_RESOURCE(fRenderTarget); 1116 ASSERT_OWNED_RESOURCE(fRenderTarget);
1117 1117
1118 fDrawingManager->getContext()->prepareSurfaceForExternalIO(fRenderTarget.get ()); 1118 fDrawingManager->prepareSurfaceForExternalIO(fRenderTarget.get());
1119 } 1119 }
1120 1120
1121 void GrDrawContext::drawNonAAFilledRect(const GrClip& clip, 1121 void GrDrawContext::drawNonAAFilledRect(const GrClip& clip,
1122 const GrPaint& paint, 1122 const GrPaint& paint,
1123 const SkMatrix& viewMatrix, 1123 const SkMatrix& viewMatrix,
1124 const SkRect& rect, 1124 const SkRect& rect,
1125 const SkRect* localRect, 1125 const SkRect* localRect,
1126 const SkMatrix* localMatrix, 1126 const SkMatrix* localMatrix,
1127 const GrUserStencilSettings* ss, 1127 const GrUserStencilSettings* ss,
1128 bool useHWAA) { 1128 bool useHWAA) {
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 1428
1429 void GrDrawContext::drawBatch(const GrPipelineBuilder& pipelineBuilder, const Gr Clip& clip, 1429 void GrDrawContext::drawBatch(const GrPipelineBuilder& pipelineBuilder, const Gr Clip& clip,
1430 GrDrawBatch* batch) { 1430 GrDrawBatch* batch) {
1431 ASSERT_SINGLE_OWNER 1431 ASSERT_SINGLE_OWNER
1432 RETURN_IF_ABANDONED 1432 RETURN_IF_ABANDONED
1433 SkDEBUGCODE(this->validate();) 1433 SkDEBUGCODE(this->validate();)
1434 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); 1434 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch");
1435 1435
1436 this->getDrawTarget()->drawBatch(pipelineBuilder, this, clip, batch); 1436 this->getDrawTarget()->drawBatch(pipelineBuilder, this, clip, batch);
1437 } 1437 }
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDrawingManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698