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

Side by Side Diff: src/gpu/batches/GrNinePatch.cpp

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « src/gpu/batches/GrDrawVerticesBatch.cpp ('k') | src/gpu/batches/GrNonAAStrokeRectBatch.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 "GrNinePatch.h" 8 #include "GrNinePatch.h"
9 9
10 #include "GrBatchFlushState.h" 10 #include "GrBatchFlushState.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 fGeoData[i].fCenter.fLeft, fGeoData[i].fCenter.fTop, 67 fGeoData[i].fCenter.fLeft, fGeoData[i].fCenter.fTop,
68 fGeoData[i].fCenter.fRight, fGeoData[i].fCenter.fBottom, 68 fGeoData[i].fCenter.fRight, fGeoData[i].fCenter.fBottom,
69 fGeoData[i].fDst.fLeft, fGeoData[i].fDst.fTop, 69 fGeoData[i].fDst.fLeft, fGeoData[i].fDst.fTop,
70 fGeoData[i].fDst.fRight, fGeoData[i].fDst.fBottom); 70 fGeoData[i].fDst.fRight, fGeoData[i].fDst.fBottom);
71 } 71 }
72 72
73 str.append(INHERITED::dumpInfo()); 73 str.append(INHERITED::dumpInfo());
74 return str; 74 return str;
75 } 75 }
76 76
77 void computePipelineOptimizations(GrInitInvariantOutput* color, 77 void computePipelineOptimizations(GrInitInvariantOutput* color,
78 GrInitInvariantOutput* coverage, 78 GrInitInvariantOutput* coverage,
79 GrBatchToXPOverrides* overrides) const ove rride { 79 GrBatchToXPOverrides* overrides) const ove rride {
80 color->setUnknownFourComponents(); 80 color->setUnknownFourComponents();
81 coverage->setKnownSingleComponent(0xff); 81 coverage->setKnownSingleComponent(0xff);
82 } 82 }
83 83
84 SkSTArray<1, Geometry, true>* geoData() { return &fGeoData; } 84 SkSTArray<1, Geometry, true>* geoData() { return &fGeoData; }
85 85
86 private: 86 private:
87 void onPrepareDraws(Target* target) const override { 87 void onPrepareDraws(Target* target) const override {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 typedef GrVertexBatch INHERITED; 175 typedef GrVertexBatch INHERITED;
176 }; 176 };
177 177
178 namespace GrNinePatch { 178 namespace GrNinePatch {
179 GrDrawBatch* CreateNonAA(GrColor color, const SkMatrix& viewMatrix, int imageWid th, int imageHeight, 179 GrDrawBatch* CreateNonAA(GrColor color, const SkMatrix& viewMatrix, int imageWid th, int imageHeight,
180 const SkIRect& center, const SkRect& dst) { 180 const SkIRect& center, const SkRect& dst) {
181 return new GrNonAANinePatchBatch(color, viewMatrix, imageWidth, imageHeight, center, dst); 181 return new GrNonAANinePatchBatch(color, viewMatrix, imageWidth, imageHeight, center, dst);
182 } 182 }
183 }; 183 };
OLDNEW
« no previous file with comments | « src/gpu/batches/GrDrawVerticesBatch.cpp ('k') | src/gpu/batches/GrNonAAStrokeRectBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698