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

Side by Side Diff: gm/bigrrectaaeffect.cpp

Issue 1310533004: Standardize BW to NonAA (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | gm/constcolorprocessor.cpp » ('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 * Copyright 2015 Google Inc. 2 * Copyright 2015 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 #include "gm.h" 8 #include "gm.h"
9 #if SK_SUPPORT_GPU 9 #if SK_SUPPORT_GPU
10 #include "GrTest.h" 10 #include "GrTest.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 SkASSERT(fp); 78 SkASSERT(fp);
79 if (fp) { 79 if (fp) {
80 pipelineBuilder.addCoverageProcessor(fp); 80 pipelineBuilder.addCoverageProcessor(fp);
81 pipelineBuilder.setRenderTarget(rt); 81 pipelineBuilder.setRenderTarget(rt);
82 82
83 SkRect bounds = SkRect::MakeWH(SkIntToScalar(kMaxSize), 83 SkRect bounds = SkRect::MakeWH(SkIntToScalar(kMaxSize),
84 SkIntToScalar(kMaxSize)); 84 SkIntToScalar(kMaxSize));
85 bounds.outset(2.f, 2.f); 85 bounds.outset(2.f, 2.f);
86 bounds.offset(SkIntToScalar(x), SkIntToScalar(y)); 86 bounds.offset(SkIntToScalar(x), SkIntToScalar(y));
87 87
88 tt.target()->drawBWRect(pipelineBuilder, 88 tt.target()->drawNonAARect(pipelineBuilder,
89 0xff000000, 89 0xff000000,
90 SkMatrix::I(), 90 SkMatrix::I(),
91 bounds); 91 bounds);
92 } 92 }
93 canvas->restore(); 93 canvas->restore();
94 x = x + kDrawOffset; 94 x = x + kDrawOffset;
95 if (x + kMaxSize> kImageWidth) { 95 if (x + kMaxSize> kImageWidth) {
96 x = kPad; 96 x = kPad;
97 y += kDrawOffset; 97 y += kDrawOffset;
98 } 98 }
99 } 99 }
100 } 100 }
101 } 101 }
(...skipping 21 matching lines...) Expand all
123 SkTDArray<SkRRect> fRRects; 123 SkTDArray<SkRRect> fRRects;
124 typedef GM INHERITED; 124 typedef GM INHERITED;
125 }; 125 };
126 126
127 /////////////////////////////////////////////////////////////////////////////// 127 ///////////////////////////////////////////////////////////////////////////////
128 128
129 DEF_GM( return new BigRRectAAEffectGM (); ) 129 DEF_GM( return new BigRRectAAEffectGM (); )
130 130
131 } 131 }
132 #endif 132 #endif
OLDNEW
« no previous file with comments | « no previous file | gm/constcolorprocessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698