Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: src/gpu/GrDrawTarget.cpp

Issue 144283004: Add dev bounds to bmp txt context, use bounds to ignore clips (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: cleanup comment Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrGpu.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698