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

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

Issue 807663002: whitespace change to context to force rebuild of skia (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 | no next file » | 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 2011 Google Inc. 3 * Copyright 2011 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 #include "GrContext.h" 9 #include "GrContext.h"
10 10
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 target->drawRect(&drawState, paint.getColor(), dstRect, &localRect, localMat rix); 812 target->drawRect(&drawState, paint.getColor(), dstRect, &localRect, localMat rix);
813 } 813 }
814 814
815 static const GrGeometryProcessor* set_vertex_attributes(const SkPoint* texCoords , 815 static const GrGeometryProcessor* set_vertex_attributes(const SkPoint* texCoords ,
816 const GrColor* colors, 816 const GrColor* colors,
817 int* colorOffset, 817 int* colorOffset,
818 int* texOffset, 818 int* texOffset,
819 GrColor color) { 819 GrColor color) {
820 *texOffset = -1; 820 *texOffset = -1;
821 *colorOffset = -1; 821 *colorOffset = -1;
822
823 uint32_t flags = GrDefaultGeoProcFactory::kPosition_GPType; 822 uint32_t flags = GrDefaultGeoProcFactory::kPosition_GPType;
824 if (texCoords && colors) { 823 if (texCoords && colors) {
825 *colorOffset = sizeof(SkPoint); 824 *colorOffset = sizeof(SkPoint);
826 *texOffset = sizeof(SkPoint) + sizeof(GrColor); 825 *texOffset = sizeof(SkPoint) + sizeof(GrColor);
827 flags |= GrDefaultGeoProcFactory::kColor_GPType | 826 flags |= GrDefaultGeoProcFactory::kColor_GPType |
828 GrDefaultGeoProcFactory::kLocalCoord_GPType; 827 GrDefaultGeoProcFactory::kLocalCoord_GPType;
829 } else if (texCoords) { 828 } else if (texCoords) {
830 *texOffset = sizeof(SkPoint); 829 *texOffset = sizeof(SkPoint);
831 flags |= GrDefaultGeoProcFactory::kLocalCoord_GPType; 830 flags |= GrDefaultGeoProcFactory::kLocalCoord_GPType;
832 } else if (colors) { 831 } else if (colors) {
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 fResourceCache2->printStats(); 1724 fResourceCache2->printStats();
1726 } 1725 }
1727 #endif 1726 #endif
1728 1727
1729 #if GR_GPU_STATS 1728 #if GR_GPU_STATS
1730 const GrContext::GPUStats* GrContext::gpuStats() const { 1729 const GrContext::GPUStats* GrContext::gpuStats() const {
1731 return fGpu->gpuStats(); 1730 return fGpu->gpuStats();
1732 } 1731 }
1733 #endif 1732 #endif
1734 1733
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698