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

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

Issue 14301021: cc: Don't pass simple well-defined classes by reference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « cc/layers/picture_layer_impl.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 13 matching lines...) Expand all
24 24
25 enum TexCoordPrecision { 25 enum TexCoordPrecision {
26 TexCoordPrecisionNA, 26 TexCoordPrecisionNA,
27 TexCoordPrecisionMedium, 27 TexCoordPrecisionMedium,
28 TexCoordPrecisionHigh, 28 TexCoordPrecisionHigh,
29 }; 29 };
30 30
31 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( 31 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired(
32 WebKit::WebGraphicsContext3D* context, 32 WebKit::WebGraphicsContext3D* context,
33 int highp_threshold_min, 33 int highp_threshold_min,
34 const gfx::Point& max_coordinate); 34 gfx::Point max_coordinate);
35 35
36 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( 36 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired(
37 WebKit::WebGraphicsContext3D* context, 37 WebKit::WebGraphicsContext3D* context,
38 int highp_threshold_min, 38 int highp_threshold_min,
39 const gfx::Size& max_size); 39 gfx::Size max_size);
40 40
41 class VertexShaderPosTex { 41 class VertexShaderPosTex {
42 public: 42 public:
43 VertexShaderPosTex(); 43 VertexShaderPosTex();
44 44
45 void Init(WebKit::WebGraphicsContext3D*, 45 void Init(WebKit::WebGraphicsContext3D*,
46 unsigned program, 46 unsigned program,
47 bool using_bind_uniform, 47 bool using_bind_uniform,
48 int* base_uniform_index); 48 int* base_uniform_index);
49 std::string GetShaderString() const; 49 std::string GetShaderString() const;
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 int tex_transform_location_; 605 int tex_transform_location_;
606 int frequency_location_; 606 int frequency_location_;
607 int color_location_; 607 int color_location_;
608 608
609 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard); 609 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard);
610 }; 610 };
611 611
612 } // namespace cc 612 } // namespace cc
613 613
614 #endif // CC_OUTPUT_SHADER_H_ 614 #endif // CC_OUTPUT_SHADER_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/output/shader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698