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

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

Issue 1919993002: Added --deepColor option to SampleApp, triggers creation of a ten-bit/channel buffer on Windows. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 4 years, 7 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/GrContext.cpp ('k') | src/gpu/effects/GrGammaEffect.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 * Copyright 2012 Google Inc. 2 * Copyright 2012 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 "GrProcessor.h" 8 #include "GrProcessor.h"
9 #include "GrContext.h" 9 #include "GrContext.h"
10 #include "GrGeometryProcessor.h" 10 #include "GrGeometryProcessor.h"
(...skipping 30 matching lines...) Expand all
41 GrProcessorTestFactory<GrGeometryProcessor>::GetFactories() { 41 GrProcessorTestFactory<GrGeometryProcessor>::GetFactories() {
42 static SkTArray<GrProcessorTestFactory<GrGeometryProcessor>*, true> gFactori es; 42 static SkTArray<GrProcessorTestFactory<GrGeometryProcessor>*, true> gFactori es;
43 return &gFactories; 43 return &gFactories;
44 } 44 }
45 45
46 /* 46 /*
47 * To ensure we always have successful static initialization, before creating fr om the factories 47 * To ensure we always have successful static initialization, before creating fr om the factories
48 * we verify the count is as expected. If a new factory is added, then these nu mbers must be 48 * we verify the count is as expected. If a new factory is added, then these nu mbers must be
49 * manually adjusted. 49 * manually adjusted.
50 */ 50 */
51 static const int kFPFactoryCount = 39; 51 static const int kFPFactoryCount = 40;
52 static const int kGPFactoryCount = 14; 52 static const int kGPFactoryCount = 14;
53 static const int kXPFactoryCount = 6; 53 static const int kXPFactoryCount = 6;
54 54
55 template<> 55 template<>
56 void GrProcessorTestFactory<GrFragmentProcessor>::VerifyFactoryCount() { 56 void GrProcessorTestFactory<GrFragmentProcessor>::VerifyFactoryCount() {
57 if (kFPFactoryCount != GetFactories()->count()) { 57 if (kFPFactoryCount != GetFactories()->count()) {
58 SkFAIL("Wrong number of fragment processor factories!"); 58 SkFAIL("Wrong number of fragment processor factories!");
59 } 59 }
60 } 60 }
61 61
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 } 134 }
135 } 135 }
136 return true; 136 return true;
137 } 137 }
138 138
139 //////////////////////////////////////////////////////////////////////////////// /////////////////// 139 //////////////////////////////////////////////////////////////////////////////// ///////////////////
140 140
141 // Initial static variable from GrXPFactory 141 // Initial static variable from GrXPFactory
142 int32_t GrXPFactory::gCurrXPFClassID = 142 int32_t GrXPFactory::gCurrXPFClassID =
143 GrXPFactory::kIllegalXPFClassID; 143 GrXPFactory::kIllegalXPFClassID;
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/effects/GrGammaEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698