OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |