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

Side by Side Diff: gpu/tools/compositor_model_bench/render_tree.h

Issue 1349783006: Cleanup: Pass std::string as const reference if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert third_party changes Created 5 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Data structures for representing parts of Chromium's composited layer tree 5 // Data structures for representing parts of Chromium's composited layer tree
6 // and a function to load it from the JSON configuration file 6 // and a function to load it from the JSON configuration file
7 7
8 #ifndef GPU_TOOLS_COMPOSITOR_MODEL_BENCH_RENDER_TREE_H_ 8 #ifndef GPU_TOOLS_COMPOSITOR_MODEL_BENCH_RENDER_TREE_H_
9 #define GPU_TOOLS_COMPOSITOR_MODEL_BENCH_RENDER_TREE_H_ 9 #define GPU_TOOLS_COMPOSITOR_MODEL_BENCH_RENDER_TREE_H_
10 10
(...skipping 17 matching lines...) Expand all
28 int texID; 28 int texID;
29 }; 29 };
30 30
31 struct Texture { 31 struct Texture {
32 int texID; 32 int texID;
33 int height; 33 int height;
34 int width; 34 int width;
35 GLenum format; 35 GLenum format;
36 }; 36 };
37 37
38 GLenum TextureFormatFromString(std::string format); 38 GLenum TextureFormatFromString(const std::string& format);
39 const char* TextureFormatName(GLenum format); 39 const char* TextureFormatName(GLenum format);
40 int FormatBytesPerPixel(GLenum format); 40 int FormatBytesPerPixel(GLenum format);
41 41
42 class RenderNodeVisitor; 42 class RenderNodeVisitor;
43 43
44 class RenderNode { 44 class RenderNode {
45 public: 45 public:
46 RenderNode(); 46 RenderNode();
47 virtual ~RenderNode(); 47 virtual ~RenderNode();
48 virtual void Accept(RenderNodeVisitor* v); 48 virtual void Accept(RenderNodeVisitor* v);
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 virtual void BeginVisitCCNode(CCNode* v); 202 virtual void BeginVisitCCNode(CCNode* v);
203 virtual void EndVisitRenderNode(RenderNode* v); 203 virtual void EndVisitRenderNode(RenderNode* v);
204 virtual void EndVisitContentLayerNode(ContentLayerNode* v); 204 virtual void EndVisitContentLayerNode(ContentLayerNode* v);
205 virtual void EndVisitCCNode(CCNode* v); 205 virtual void EndVisitCCNode(CCNode* v);
206 }; 206 };
207 207
208 RenderNode* BuildRenderTreeFromFile(const base::FilePath& path); 208 RenderNode* BuildRenderTreeFromFile(const base::FilePath& path);
209 209
210 #endif // GPU_TOOLS_COMPOSITOR_MODEL_BENCH_RENDER_TREE_H_ 210 #endif // GPU_TOOLS_COMPOSITOR_MODEL_BENCH_RENDER_TREE_H_
211 211
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698