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

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

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine 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 | « src/gpu/GrContext.cpp ('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 /* 2 /*
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "GrAtlasTextContext.h" 9 #include "GrAtlasTextContext.h"
10 #include "GrBatchTest.h" 10 #include "GrBatchTest.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 RETURN_IF_ABANDONED 155 RETURN_IF_ABANDONED
156 SkDEBUGCODE(this->validate();) 156 SkDEBUGCODE(this->validate();)
157 157
158 AutoCheckFlush acf(fDrawingManager); 158 AutoCheckFlush acf(fDrawingManager);
159 this->getDrawTarget()->discard(fRenderTarget); 159 this->getDrawTarget()->discard(fRenderTarget);
160 } 160 }
161 161
162 void GrDrawContext::clear(const SkIRect* rect, 162 void GrDrawContext::clear(const SkIRect* rect,
163 const GrColor color, 163 const GrColor color,
164 bool canIgnoreRect) { 164 bool canIgnoreRect) {
165 SkDEBUGCODE(this->validate();)
166
165 RETURN_IF_ABANDONED 167 RETURN_IF_ABANDONED
166 SkDEBUGCODE(this->validate();) 168 SkDEBUGCODE(this->validate();)
167 169
168 AutoCheckFlush acf(fDrawingManager); 170 AutoCheckFlush acf(fDrawingManager);
169 this->getDrawTarget()->clear(rect, color, canIgnoreRect, fRenderTarget); 171 this->getDrawTarget()->clear(rect, color, canIgnoreRect, fRenderTarget);
170 } 172 }
171 173
172 174
173 void GrDrawContext::drawPaint(const GrClip& clip, 175 void GrDrawContext::drawPaint(const GrClip& clip,
174 const GrPaint& origPaint, 176 const GrPaint& origPaint,
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 args.fAntiAlias = useCoverageAA; 790 args.fAntiAlias = useCoverageAA;
789 pr->drawPath(args); 791 pr->drawPath(args);
790 } 792 }
791 793
792 void GrDrawContext::drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* b atch) { 794 void GrDrawContext::drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* b atch) {
793 RETURN_IF_ABANDONED 795 RETURN_IF_ABANDONED
794 SkDEBUGCODE(this->validate();) 796 SkDEBUGCODE(this->validate();)
795 797
796 this->getDrawTarget()->drawBatch(*pipelineBuilder, batch); 798 this->getDrawTarget()->drawBatch(*pipelineBuilder, batch);
797 } 799 }
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDrawTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698