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

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

Issue 145313006: [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 10 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/output_surface.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( 46 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired(
47 gpu::gles2::GLES2Interface* context, 47 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 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 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();
61 61
62 void Init(gpu::gles2::GLES2Interface* context, 62 void Init(gpu::gles2::GLES2Interface* context,
63 unsigned program, 63 unsigned program,
64 int* base_uniform_index); 64 int* base_uniform_index);
65 std::string GetShaderString() const; 65 std::string GetShaderString() const;
66 66
(...skipping 657 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/output_surface.cc ('k') | cc/output/shader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698