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

Side by Side Diff: media/tools/tile_render_bench/tile_render_bench.cc

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 | « media/tools/shader_bench/shader_bench.cc ('k') | ui/aura/aura.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 // This tool is used to benchmark the technique of using tiles to render a 5 // This tool is used to benchmark the technique of using tiles to render a
6 // large tecture. This tool runs with different tile sizes so that developer 6 // large tecture. This tool runs with different tile sizes so that developer
7 // can determine the right dimensions for the tiles. 7 // can determine the right dimensions for the tiles.
8 8
9 #include <iostream> 9 #include <iostream>
10 10
11 #include <X11/keysym.h>
12 #include <X11/Xlib.h> 11 #include <X11/Xlib.h>
13 #include <X11/Xutil.h> 12 #include <X11/Xutil.h>
13 #include <X11/keysym.h>
14 14
15 #include "base/at_exit.h" 15 #include "base/at_exit.h"
16 #include "base/basictypes.h" 16 #include "base/basictypes.h"
17 #include "base/bind.h" 17 #include "base/bind.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "base/message_loop.h" 19 #include "base/message_loop.h"
20 #include "ui/gfx/gl/gl_bindings.h" 20 #include "ui/gl/gl_bindings.h"
21 #include "ui/gfx/gl/gl_implementation.h" 21 #include "ui/gl/gl_implementation.h"
22 22
23 // Initial size of the window and the texture. 23 // Initial size of the window and the texture.
24 static const int kStartSize = 1024; 24 static const int kStartSize = 1024;
25 25
26 // The smallest texture size we're trying. 26 // The smallest texture size we're trying.
27 static const int kEndSize = 16; 27 static const int kEndSize = 16;
28 28
29 // Factor for dividing the size from one step to another. 29 // Factor for dividing the size from one step to another.
30 static const int kSizeFactor = 2; 30 static const int kSizeFactor = 2;
31 31
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 // Cleanup GL. 237 // Cleanup GL.
238 glXMakeCurrent(g_display, 0, NULL); 238 glXMakeCurrent(g_display, 0, NULL);
239 glXDestroyContext(g_display, g_gl_context); 239 glXDestroyContext(g_display, g_gl_context);
240 240
241 // Destroy window and display. 241 // Destroy window and display.
242 XDestroyWindow(g_display, g_window); 242 XDestroyWindow(g_display, g_window);
243 XCloseDisplay(g_display); 243 XCloseDisplay(g_display);
244 return 0; 244 return 0;
245 } 245 }
OLDNEW
« no previous file with comments | « media/tools/shader_bench/shader_bench.cc ('k') | ui/aura/aura.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698