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

Side by Side Diff: src/gpu/instanced/InstanceProcessor.cpp

Issue 2115313002: Add missing case to InstanceProcessor::GetNameOfIndexRange (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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 | 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 * Copyright 2016 Google Inc. 2 * Copyright 2016 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 "InstanceProcessor.h" 8 #include "InstanceProcessor.h"
9 9
10 #include "GrContext.h" 10 #include "GrContext.h"
(...skipping 2071 matching lines...) Expand 10 before | Expand all | Expand 10 after
2082 GR_STATIC_ASSERT(3 == (int)AntialiasMode::kMixedSamples); 2082 GR_STATIC_ASSERT(3 == (int)AntialiasMode::kMixedSamples);
2083 } 2083 }
2084 2084
2085 const char* InstanceProcessor::GetNameOfIndexRange(IndexRange range) { 2085 const char* InstanceProcessor::GetNameOfIndexRange(IndexRange range) {
2086 switch (range.fStart) { 2086 switch (range.fStart) {
2087 case kRect_FirstIndex: return "basic_rect"; 2087 case kRect_FirstIndex: return "basic_rect";
2088 case kFramedRect_FirstIndex: return "coverage_rect"; 2088 case kFramedRect_FirstIndex: return "coverage_rect";
2089 2089
2090 case kOctagons_FirstIndex: return "basic_oval"; 2090 case kOctagons_FirstIndex: return "basic_oval";
2091 case kDisjointOctagons_FirstIndex: return "coverage_oval"; 2091 case kDisjointOctagons_FirstIndex: return "coverage_oval";
2092 case kDisjoint16Gons_FirstIndex: return "coverage_large_oval";
2092 case kOctagonsFanned_FirstIndex: return "mixed_samples_oval"; 2093 case kOctagonsFanned_FirstIndex: return "mixed_samples_oval";
2093 2094
2094 case kCorneredRect_FirstIndex: return "basic_round_rect"; 2095 case kCorneredRect_FirstIndex: return "basic_round_rect";
2095 case kCorneredFramedRect_FirstIndex: return "coverage_round_rect"; 2096 case kCorneredFramedRect_FirstIndex: return "coverage_round_rect";
2096 case kCorneredRectFanned_FirstIndex: return "mixed_samples_round_rect"; 2097 case kCorneredRectFanned_FirstIndex: return "mixed_samples_round_rect";
2097 2098
2098 default: return "unknown"; 2099 default: return "unknown";
2099 } 2100 }
2100 } 2101 }
2101 2102
2102 } 2103 }
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