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

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

Issue 10392068: ui: Move gl/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac_rel Created 8 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 | Annotate | Revision Log
« no previous file with comments | « gpu/gpu_common.gypi ('k') | gpu/tools/tools.gyp » ('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 (c) 2011 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
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/memory/scoped_vector.h" 15 #include "base/memory/scoped_vector.h"
16 #include "gpu/tools/compositor_model_bench/shaders.h" 16 #include "gpu/tools/compositor_model_bench/shaders.h"
17 #include "ui/gfx/gl/gl_bindings.h" 17 #include "ui/gl/gl_bindings.h"
18 #include "ui/gfx/gl/gl_implementation.h" 18 #include "ui/gl/gl_implementation.h"
19 19
20 // These are fairly arbitrary values based on how big my actual browser 20 // These are fairly arbitrary values based on how big my actual browser
21 // window was. 21 // window was.
22 const int WINDOW_WIDTH = 1609; 22 const int WINDOW_WIDTH = 1609;
23 const int WINDOW_HEIGHT = 993; 23 const int WINDOW_HEIGHT = 993;
24 24
25 struct Tile { 25 struct Tile {
26 int x; 26 int x;
27 int y; 27 int y;
28 int texID; 28 int texID;
(...skipping 173 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 FilePath& path); 208 RenderNode* BuildRenderTreeFromFile(const 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
« no previous file with comments | « gpu/gpu_common.gypi ('k') | gpu/tools/tools.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698