| OLD | NEW | 
|---|
| 1 | 1 | 
| 2 /* | 2 /* | 
| 3  * Copyright 2010 Google Inc. | 3  * Copyright 2010 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 "GrDrawTarget.h" | 9 #include "GrDrawTarget.h" | 
| 10 | 10 | 
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 352 | 352 | 
| 353 void GrDrawTarget::drawNonAARect(const GrPipelineBuilder& pipelineBuilder, | 353 void GrDrawTarget::drawNonAARect(const GrPipelineBuilder& pipelineBuilder, | 
| 354                               GrColor color, | 354                               GrColor color, | 
| 355                               const SkMatrix& viewMatrix, | 355                               const SkMatrix& viewMatrix, | 
| 356                               const SkRect& rect) { | 356                               const SkRect& rect) { | 
| 357    SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateNonAAFill(color, vi
     ewMatrix, rect, | 357    SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateNonAAFill(color, vi
     ewMatrix, rect, | 
| 358                                                                        nullptr, 
     nullptr)); | 358                                                                        nullptr, 
     nullptr)); | 
| 359    this->drawBatch(pipelineBuilder, batch); | 359    this->drawBatch(pipelineBuilder, batch); | 
| 360 } | 360 } | 
| 361 | 361 | 
| 362 void GrDrawTarget::drawNonAARect(const GrPipelineBuilder& pipelineBuilder, |  | 
| 363                               GrColor color, |  | 
| 364                               const SkMatrix& viewMatrix, |  | 
| 365                               const SkRect& rect, |  | 
| 366                               const SkMatrix& localMatrix) { |  | 
| 367    SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateNonAAFill(color, vi
     ewMatrix, rect, |  | 
| 368                                                                        nullptr, 
     &localMatrix)); |  | 
| 369    this->drawBatch(pipelineBuilder, batch); |  | 
| 370 } |  | 
| 371 |  | 
| 372 void GrDrawTarget::drawNonAARect(const GrPipelineBuilder& pipelineBuilder, |  | 
| 373                               GrColor color, |  | 
| 374                               const SkMatrix& viewMatrix, |  | 
| 375                               const SkRect& rect, |  | 
| 376                               const SkRect& localRect) { |  | 
| 377    SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateNonAAFill(color, vi
     ewMatrix, rect, |  | 
| 378                                                                        &localRec
     t, nullptr)); |  | 
| 379    this->drawBatch(pipelineBuilder, batch); |  | 
| 380 } |  | 
| 381 |  | 
| 382 |  | 
| 383 void GrDrawTarget::drawAARect(const GrPipelineBuilder& pipelineBuilder, | 362 void GrDrawTarget::drawAARect(const GrPipelineBuilder& pipelineBuilder, | 
| 384                               GrColor color, | 363                               GrColor color, | 
| 385                               const SkMatrix& viewMatrix, | 364                               const SkMatrix& viewMatrix, | 
| 386                               const SkRect& rect, | 365                               const SkRect& rect, | 
| 387                               const SkRect& devRect) { | 366                               const SkRect& devRect) { | 
| 388     SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateAAFill(color, view
     Matrix, rect, | 367     SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateAAFill(color, view
     Matrix, rect, | 
| 389                                                                      devRect)); | 368                                                                      devRect)); | 
| 390     this->drawBatch(pipelineBuilder, batch); | 369     this->drawBatch(pipelineBuilder, batch); | 
| 391 } | 370 } | 
| 392 | 371 | 
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 538     } | 517     } | 
| 539 | 518 | 
| 540     return true; | 519     return true; | 
| 541 } | 520 } | 
| 542 | 521 | 
| 543 void GrDrawTarget::clearStencilClip(const SkIRect& rect, bool insideClip, GrRend
     erTarget* rt) { | 522 void GrDrawTarget::clearStencilClip(const SkIRect& rect, bool insideClip, GrRend
     erTarget* rt) { | 
| 544     GrBatch* batch = new GrClearStencilClipBatch(rect, insideClip, rt); | 523     GrBatch* batch = new GrClearStencilClipBatch(rect, insideClip, rt); | 
| 545     this->recordBatch(batch); | 524     this->recordBatch(batch); | 
| 546     batch->unref(); | 525     batch->unref(); | 
| 547 } | 526 } | 
| OLD | NEW | 
|---|