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

Side by Side Diff: mojo/gles2/gles2_impl.cc

Issue 451753003: Mojo multiple command buffer support and sample (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better casts Created 6 years, 4 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 | « mojo/gles2/command_buffer_client_impl.cc ('k') | mojo/mojo.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/public/c/gles2/gles2.h" 5 #include "mojo/public/c/gles2/gles2.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/threading/thread_local.h" 8 #include "base/threading/thread_local.h"
9 #include "gpu/GLES2/gl2extchromium.h" 9 #include "gpu/GLES2/gl2extchromium.h"
10 #include "gpu/command_buffer/client/gles2_interface.h" 10 #include "gpu/command_buffer/client/gles2_interface.h"
11 #include "mojo/gles2/gles2_context.h" 11 #include "mojo/gles2/gles2_context.h"
12 #include "mojo/gles2/gles2_impl_export.h"
12 13
13 using mojo::gles2::GLES2Context; 14 using mojo::gles2::GLES2Context;
14 15
15 namespace { 16 namespace {
16 17
17 base::LazyInstance<base::ThreadLocalPointer<gpu::gles2::GLES2Interface> >::Leaky 18 base::LazyInstance<base::ThreadLocalPointer<gpu::gles2::GLES2Interface> >::Leaky
18 g_gpu_interface; 19 g_gpu_interface;
19 20
20 } // namespace 21 } // namespace
21 22
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 ReturnType gl##Function PARAMETERS { \ 65 ReturnType gl##Function PARAMETERS { \
65 DCHECK(g_gpu_interface.Get().Get()); \ 66 DCHECK(g_gpu_interface.Get().Get()); \
66 return g_gpu_interface.Get().Get()->Function ARGUMENTS; \ 67 return g_gpu_interface.Get().Get()->Function ARGUMENTS; \
67 } 68 }
68 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h" 69 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h"
69 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_sync_point_autogen.h" 70 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_sync_point_autogen.h"
70 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_texture_mailbox_autoge n.h" 71 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_texture_mailbox_autoge n.h"
71 #undef VISIT_GL_CALL 72 #undef VISIT_GL_CALL
72 73
73 } // extern "C" 74 } // extern "C"
OLDNEW
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.cc ('k') | mojo/mojo.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698