OLD | NEW |
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 27 matching lines...) Expand all Loading... |
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 bool context_lost_; |
| 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(ContextProviderMojo); |
48 }; | 50 }; |
49 | 51 |
50 } // namespace mojo | 52 } // namespace mojo |
51 | 53 |
52 #endif // MOJO_CC_CONTEXT_PROVIDER_MOJO_H_ | 54 #endif // MOJO_CC_CONTEXT_PROVIDER_MOJO_H_ |
OLD | NEW |