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

Side by Side Diff: cc/output/shader.h

Issue 185653013: [#8] Pass gfx::Point by const ref. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build errors on other platforms Created 6 years, 9 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 | « cc/output/gl_renderer.cc ('k') | cc/output/shader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_OUTPUT_SHADER_H_ 5 #ifndef CC_OUTPUT_SHADER_H_
6 #define CC_OUTPUT_SHADER_H_ 6 #define CC_OUTPUT_SHADER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 25 matching lines...) Expand all
36 SamplerType2D = 1, 36 SamplerType2D = 1,
37 SamplerType2DRect = 2, 37 SamplerType2DRect = 2,
38 SamplerTypeExternalOES = 3, 38 SamplerTypeExternalOES = 3,
39 NumSamplerTypes = 4 39 NumSamplerTypes = 4
40 }; 40 };
41 41
42 // Note: The highp_threshold_cache must be provided by the caller to make 42 // Note: The highp_threshold_cache must be provided by the caller to make
43 // the caching multi-thread/context safe in an easy low-overhead manner. 43 // the caching multi-thread/context safe in an easy low-overhead manner.
44 // The caller must make sure to clear highp_threshold_cache to 0, so it can be 44 // The caller must make sure to clear highp_threshold_cache to 0, so it can be
45 // reinitialized, if a new or different context is used. 45 // reinitialized, if a new or different context is used.
46 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( 46 CC_EXPORT TexCoordPrecision
47 gpu::gles2::GLES2Interface* context, 47 TexCoordPrecisionRequired(gpu::gles2::GLES2Interface* context,
48 int *highp_threshold_cache, 48 int* highp_threshold_cache,
49 int highp_threshold_min, 49 int highp_threshold_min,
50 gfx::Point max_coordinate); 50 const gfx::Point& max_coordinate);
51 51
52 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( 52 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired(
53 gpu::gles2::GLES2Interface* context, 53 gpu::gles2::GLES2Interface* context,
54 int *highp_threshold_cache, 54 int *highp_threshold_cache,
55 int highp_threshold_min, 55 int highp_threshold_min,
56 const gfx::Size& max_size); 56 const gfx::Size& max_size);
57 57
58 class VertexShaderPosTex { 58 class VertexShaderPosTex {
59 public: 59 public:
60 VertexShaderPosTex(); 60 VertexShaderPosTex();
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 int tex_transform_location_; 724 int tex_transform_location_;
725 int frequency_location_; 725 int frequency_location_;
726 int color_location_; 726 int color_location_;
727 727
728 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard); 728 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard);
729 }; 729 };
730 730
731 } // namespace cc 731 } // namespace cc
732 732
733 #endif // CC_OUTPUT_SHADER_H_ 733 #endif // CC_OUTPUT_SHADER_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/output/shader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698