| 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 | 9 |
| 10 | 10 |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 if (NULL != localRect) { | 661 if (NULL != localRect) { |
| 662 GrPoint* coords = GrTCast<GrPoint*>(GrTCast<intptr_t>(geo.vertices()) + | 662 GrPoint* coords = GrTCast<GrPoint*>(GrTCast<intptr_t>(geo.vertices()) + |
| 663 sizeof(GrPoint)); | 663 sizeof(GrPoint)); |
| 664 coords->setRectFan(localRect->fLeft, localRect->fTop, | 664 coords->setRectFan(localRect->fLeft, localRect->fTop, |
| 665 localRect->fRight, localRect->fBottom, | 665 localRect->fRight, localRect->fBottom, |
| 666 vsize); | 666 vsize); |
| 667 if (NULL != localMatrix) { | 667 if (NULL != localMatrix) { |
| 668 localMatrix->mapPointsWithStride(coords, vsize, 4); | 668 localMatrix->mapPointsWithStride(coords, vsize, 4); |
| 669 } | 669 } |
| 670 } | 670 } |
| 671 SkTLazy<SkRect> bounds; | 671 SkRect bounds; |
| 672 if (this->getDrawState().willEffectReadDstColor()) { | 672 this->getDrawState().getViewMatrix().mapRect(&bounds, rect); |
| 673 bounds.init(); | |
| 674 this->getDrawState().getViewMatrix().mapRect(bounds.get(), rect); | |
| 675 } | |
| 676 | 673 |
| 677 this->drawNonIndexed(kTriangleFan_GrPrimitiveType, 0, 4, bounds.getMaybeNull
()); | 674 this->drawNonIndexed(kTriangleFan_GrPrimitiveType, 0, 4, &bounds); |
| 678 } | 675 } |
| 679 | 676 |
| 680 void GrDrawTarget::clipWillBeSet(const GrClipData* clipData) { | 677 void GrDrawTarget::clipWillBeSet(const GrClipData* clipData) { |
| 681 } | 678 } |
| 682 | 679 |
| 683 //////////////////////////////////////////////////////////////////////////////// | 680 //////////////////////////////////////////////////////////////////////////////// |
| 684 | 681 |
| 685 GrDrawTarget::AutoStateRestore::AutoStateRestore() { | 682 GrDrawTarget::AutoStateRestore::AutoStateRestore() { |
| 686 fDrawTarget = NULL; | 683 fDrawTarget = NULL; |
| 687 } | 684 } |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 for (size_t i = 0; i < SK_ARRAY_COUNT(kConfigNames); ++i) { | 1046 for (size_t i = 0; i < SK_ARRAY_COUNT(kConfigNames); ++i) { |
| 1050 if (i != kUnknown_GrPixelConfig) { | 1047 if (i != kUnknown_GrPixelConfig) { |
| 1051 r.appendf("%s is renderable: %s, with MSAA: %s\n", | 1048 r.appendf("%s is renderable: %s, with MSAA: %s\n", |
| 1052 kConfigNames[i], | 1049 kConfigNames[i], |
| 1053 gNY[fConfigRenderSupport[i][0]], | 1050 gNY[fConfigRenderSupport[i][0]], |
| 1054 gNY[fConfigRenderSupport[i][1]]); | 1051 gNY[fConfigRenderSupport[i][1]]); |
| 1055 } | 1052 } |
| 1056 } | 1053 } |
| 1057 return r; | 1054 return r; |
| 1058 } | 1055 } |
| OLD | NEW |