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

Side by Side Diff: mojo/examples/compositor_app/mojo_context_provider.h

Issue 218193002: Mojo: Move C gles2 header files to mojo/public/c/gles2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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
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 "cc/output/context_provider.h" 5 #include "cc/output/context_provider.h"
6 #include "mojo/public/c/gles2/gles2.h"
6 #include "mojo/public/cpp/system/core.h" 7 #include "mojo/public/cpp/system/core.h"
7 #include "mojo/public/gles2/gles2.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 namespace examples { 10 namespace examples {
11 11
12 class MojoContextProvider : public cc::ContextProvider { 12 class MojoContextProvider : public cc::ContextProvider {
13 public: 13 public:
14 explicit MojoContextProvider(ScopedMessagePipeHandle gl_pipe); 14 explicit MojoContextProvider(ScopedMessagePipeHandle gl_pipe);
15 15
16 // cc::ContextProvider implementation. 16 // cc::ContextProvider implementation.
17 virtual bool BindToCurrentThread() OVERRIDE; 17 virtual bool BindToCurrentThread() OVERRIDE;
(...skipping 20 matching lines...) Expand all
38 } 38 }
39 void ContextLost(); 39 void ContextLost();
40 40
41 cc::ContextProvider::Capabilities capabilities_; 41 cc::ContextProvider::Capabilities capabilities_;
42 ScopedMessagePipeHandle gl_pipe_; 42 ScopedMessagePipeHandle gl_pipe_;
43 MojoGLES2Context context_; 43 MojoGLES2Context context_;
44 }; 44 };
45 45
46 } // namespace examples 46 } // namespace examples
47 } // namespace mojo 47 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/examples/aura_demo/window_tree_host_mojo.cc ('k') | mojo/examples/pepper_container_app/graphics_3d_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698