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

Side by Side Diff: mojo/cc/context_provider_mojo.h

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix network_service_loader Created 6 years, 5 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 | « device/serial/serial_service_impl.cc ('k') | mojo/cc/context_provider_mojo.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 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 #ifndef MOJO_CC_CONTEXT_PROVIDER_MOJO_H_ 5 #ifndef MOJO_CC_CONTEXT_PROVIDER_MOJO_H_
6 #define MOJO_CC_CONTEXT_PROVIDER_MOJO_H_ 6 #define MOJO_CC_CONTEXT_PROVIDER_MOJO_H_
7 7
8 #include "cc/output/context_provider.h" 8 #include "cc/output/context_provider.h"
9 #include "mojo/public/c/gles2/gles2.h" 9 #include "mojo/public/c/gles2/gles2.h"
10 #include "mojo/public/cpp/system/core.h" 10 #include "mojo/public/cpp/system/core.h"
(...skipping 26 matching lines...) Expand all
37 37
38 private: 38 private:
39 static void ContextLostThunk(void* closure) { 39 static void ContextLostThunk(void* closure) {
40 static_cast<ContextProviderMojo*>(closure)->ContextLost(); 40 static_cast<ContextProviderMojo*>(closure)->ContextLost();
41 } 41 }
42 void ContextLost(); 42 void ContextLost();
43 43
44 cc::ContextProvider::Capabilities capabilities_; 44 cc::ContextProvider::Capabilities capabilities_;
45 ScopedMessagePipeHandle command_buffer_handle_; 45 ScopedMessagePipeHandle command_buffer_handle_;
46 MojoGLES2Context context_; 46 MojoGLES2Context context_;
47 bool context_lost_;
47 }; 48 };
48 49
49 } // namespace mojo 50 } // namespace mojo
50 51
51 #endif // MOJO_CC_CONTEXT_PROVIDER_MOJO_H_ 52 #endif // MOJO_CC_CONTEXT_PROVIDER_MOJO_H_
OLDNEW
« no previous file with comments | « device/serial/serial_service_impl.cc ('k') | mojo/cc/context_provider_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698