Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 #ifndef GrDrawTarget_DEFINED | 8 #ifndef GrDrawTarget_DEFINED |
| 9 #define GrDrawTarget_DEFINED | 9 #define GrDrawTarget_DEFINED |
| 10 | 10 |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 299 * or if it is NULL by rect. This matrix applies to the c oordinate implied by | 299 * or if it is NULL by rect. This matrix applies to the c oordinate implied by |
| 300 * that rectangle before it is input to GrCoordTransforms that read local | 300 * that rectangle before it is input to GrCoordTransforms that read local |
| 301 * coordinates | 301 * coordinates |
| 302 */ | 302 */ |
| 303 void drawRect(GrPipelineBuilder* pipelineBuilder, | 303 void drawRect(GrPipelineBuilder* pipelineBuilder, |
| 304 GrColor color, | 304 GrColor color, |
| 305 const SkMatrix& viewMatrix, | 305 const SkMatrix& viewMatrix, |
| 306 const SkRect& rect, | 306 const SkRect& rect, |
| 307 const SkRect* localRect, | 307 const SkRect* localRect, |
| 308 const SkMatrix* localMatrix) { | 308 const SkMatrix* localMatrix) { |
| 309 AutoGeometryPush agp(this); | |
|
bsalomon
2015/02/26 16:45:57
I think this guarded against rect draws by GrCCM,
| |
| 310 this->onDrawRect(pipelineBuilder, color, viewMatrix, rect, localRect, lo calMatrix); | 309 this->onDrawRect(pipelineBuilder, color, viewMatrix, rect, localRect, lo calMatrix); |
| 311 } | 310 } |
| 312 | 311 |
| 313 /** | 312 /** |
| 314 * Helper for drawRect when the caller doesn't need separate local rects or matrices. | 313 * Helper for drawRect when the caller doesn't need separate local rects or matrices. |
| 315 */ | 314 */ |
| 316 void drawSimpleRect(GrPipelineBuilder* ds, GrColor color, const SkMatrix& vi ewM, | 315 void drawSimpleRect(GrPipelineBuilder* ds, GrColor color, const SkMatrix& vi ewM, |
| 317 const SkRect& rect) { | 316 const SkRect& rect) { |
| 318 this->drawRect(ds, color, viewM, rect, NULL, NULL); | 317 this->drawRect(ds, color, viewM, rect, NULL, NULL); |
| 319 } | 318 } |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 851 virtual bool setupClip(GrPipelineBuilder*, | 850 virtual bool setupClip(GrPipelineBuilder*, |
| 852 GrPipelineBuilder::AutoRestoreEffects* are, | 851 GrPipelineBuilder::AutoRestoreEffects* are, |
| 853 GrPipelineBuilder::AutoRestoreStencil* ars, | 852 GrPipelineBuilder::AutoRestoreStencil* ars, |
| 854 GrScissorState* scissorState, | 853 GrScissorState* scissorState, |
| 855 const SkRect* devBounds) SK_OVERRIDE; | 854 const SkRect* devBounds) SK_OVERRIDE; |
| 856 | 855 |
| 857 typedef GrDrawTarget INHERITED; | 856 typedef GrDrawTarget INHERITED; |
| 858 }; | 857 }; |
| 859 | 858 |
| 860 #endif | 859 #endif |
| OLD | NEW |