| 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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 viewM.mapRect(&devBounds); | 541 viewM.mapRect(&devBounds); |
| 542 | 542 |
| 543 GrDeviceCoordTexture dstCopy; | 543 GrDeviceCoordTexture dstCopy; |
| 544 if (!this->setupDstReadIfNecessary(&dstCopy, &devBounds)) { | 544 if (!this->setupDstReadIfNecessary(&dstCopy, &devBounds)) { |
| 545 return; | 545 return; |
| 546 } | 546 } |
| 547 | 547 |
| 548 this->onDrawPath(path, fill, dstCopy.texture() ? &dstCopy : NULL); | 548 this->onDrawPath(path, fill, dstCopy.texture() ? &dstCopy : NULL); |
| 549 } | 549 } |
| 550 | 550 |
| 551 void GrDrawTarget::drawPaths(size_t pathCount, const GrPath** paths, | 551 void GrDrawTarget::drawPaths(int pathCount, const GrPath** paths, |
| 552 const SkMatrix* transforms, | 552 const SkMatrix* transforms, |
| 553 SkPath::FillType fill, SkStrokeRec::Style stroke) { | 553 SkPath::FillType fill, SkStrokeRec::Style stroke) { |
| 554 SkASSERT(pathCount > 0); | 554 SkASSERT(pathCount > 0); |
| 555 SkASSERT(NULL != paths); | 555 SkASSERT(NULL != paths); |
| 556 SkASSERT(NULL != paths[0]); | 556 SkASSERT(NULL != paths[0]); |
| 557 SkASSERT(this->caps()->pathRenderingSupport()); | 557 SkASSERT(this->caps()->pathRenderingSupport()); |
| 558 SkASSERT(!SkPath::IsInverseFillType(fill)); | 558 SkASSERT(!SkPath::IsInverseFillType(fill)); |
| 559 | 559 |
| 560 const GrDrawState* drawState = &getDrawState(); | 560 const GrDrawState* drawState = &getDrawState(); |
| 561 | 561 |
| 562 SkRect devBounds; | 562 SkRect devBounds; |
| 563 for (size_t i = 0; i < pathCount; ++i) { | 563 for (int i = 0; i < pathCount; ++i) { |
| 564 SkRect mappedPathBounds; | 564 SkRect mappedPathBounds; |
| 565 transforms[i].mapRect(&mappedPathBounds, paths[i]->getBounds()); | 565 transforms[i].mapRect(&mappedPathBounds, paths[i]->getBounds()); |
| 566 devBounds.join(mappedPathBounds); | 566 devBounds.join(mappedPathBounds); |
| 567 } | 567 } |
| 568 | 568 |
| 569 SkMatrix viewM = drawState->getViewMatrix(); | 569 SkMatrix viewM = drawState->getViewMatrix(); |
| 570 viewM.mapRect(&devBounds); | 570 viewM.mapRect(&devBounds); |
| 571 | 571 |
| 572 GrDeviceCoordTexture dstCopy; | 572 GrDeviceCoordTexture dstCopy; |
| 573 if (!this->setupDstReadIfNecessary(&dstCopy, &devBounds)) { | 573 if (!this->setupDstReadIfNecessary(&dstCopy, &devBounds)) { |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 for (size_t i = 0; i < SK_ARRAY_COUNT(kConfigNames); ++i) { | 1098 for (size_t i = 0; i < SK_ARRAY_COUNT(kConfigNames); ++i) { |
| 1099 if (i != kUnknown_GrPixelConfig) { | 1099 if (i != kUnknown_GrPixelConfig) { |
| 1100 r.appendf("%s is renderable: %s, with MSAA: %s\n", | 1100 r.appendf("%s is renderable: %s, with MSAA: %s\n", |
| 1101 kConfigNames[i], | 1101 kConfigNames[i], |
| 1102 gNY[fConfigRenderSupport[i][0]], | 1102 gNY[fConfigRenderSupport[i][0]], |
| 1103 gNY[fConfigRenderSupport[i][1]]); | 1103 gNY[fConfigRenderSupport[i][1]]); |
| 1104 } | 1104 } |
| 1105 } | 1105 } |
| 1106 return r; | 1106 return r; |
| 1107 } | 1107 } |
| OLD | NEW |