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

Side by Side Diff: gpu/command_buffer/service/context_group.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 | « gpu/command_buffer/common/unittest_main.cc ('k') | gpu/command_buffer/service/feature_info.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 (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 #include "gpu/command_buffer/service/context_group.h" 5 #include "gpu/command_buffer/service/context_group.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "gpu/command_buffer/common/id_allocator.h" 11 #include "gpu/command_buffer/common/id_allocator.h"
12 #include "gpu/command_buffer/service/buffer_manager.h" 12 #include "gpu/command_buffer/service/buffer_manager.h"
13 #include "gpu/command_buffer/service/framebuffer_manager.h" 13 #include "gpu/command_buffer/service/framebuffer_manager.h"
14 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 14 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
15 #include "gpu/command_buffer/service/gpu_switches.h" 15 #include "gpu/command_buffer/service/gpu_switches.h"
16 #include "gpu/command_buffer/service/mailbox_manager.h" 16 #include "gpu/command_buffer/service/mailbox_manager.h"
17 #include "gpu/command_buffer/service/program_manager.h" 17 #include "gpu/command_buffer/service/program_manager.h"
18 #include "gpu/command_buffer/service/renderbuffer_manager.h" 18 #include "gpu/command_buffer/service/renderbuffer_manager.h"
19 #include "gpu/command_buffer/service/shader_manager.h" 19 #include "gpu/command_buffer/service/shader_manager.h"
20 #include "gpu/command_buffer/service/texture_manager.h" 20 #include "gpu/command_buffer/service/texture_manager.h"
21 #include "ui/gfx/gl/gl_implementation.h" 21 #include "ui/gl/gl_implementation.h"
22 22
23 namespace gpu { 23 namespace gpu {
24 namespace gles2 { 24 namespace gles2 {
25 25
26 ContextGroup::ContextGroup(MailboxManager* mailbox_manager, 26 ContextGroup::ContextGroup(MailboxManager* mailbox_manager,
27 bool bind_generates_resource) 27 bool bind_generates_resource)
28 : mailbox_manager_(mailbox_manager ? mailbox_manager : new MailboxManager), 28 : mailbox_manager_(mailbox_manager ? mailbox_manager : new MailboxManager),
29 num_contexts_(0), 29 num_contexts_(0),
30 enforce_gl_minimums_(CommandLine::ForCurrentProcess()->HasSwitch( 30 enforce_gl_minimums_(CommandLine::ForCurrentProcess()->HasSwitch(
31 switches::kEnforceGLMinimums)), 31 switches::kEnforceGLMinimums)),
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 if (namespace_id >= arraysize(id_namespaces_)) 273 if (namespace_id >= arraysize(id_namespaces_))
274 return NULL; 274 return NULL;
275 275
276 return id_namespaces_[namespace_id].get(); 276 return id_namespaces_[namespace_id].get();
277 } 277 }
278 278
279 } // namespace gles2 279 } // namespace gles2
280 } // namespace gpu 280 } // namespace gpu
281 281
282 282
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/unittest_main.cc ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698