| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 private: | 75 private: |
| 76 friend class base::RefCountedThreadSafe<SharedProviders>; | 76 friend class base::RefCountedThreadSafe<SharedProviders>; |
| 77 ~SharedProviders(); | 77 ~SharedProviders(); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 base::ThreadChecker main_thread_checker_; | 80 base::ThreadChecker main_thread_checker_; |
| 81 base::ThreadChecker context_thread_checker_; | 81 base::ThreadChecker context_thread_checker_; |
| 82 | 82 |
| 83 scoped_refptr<SharedProviders> shared_providers_; | 83 scoped_refptr<SharedProviders> shared_providers_; |
| 84 | 84 |
| 85 base::Lock context_lock_; // Referenced by context3d_. |
| 85 std::unique_ptr<WebGraphicsContext3DCommandBufferImpl> context3d_; | 86 std::unique_ptr<WebGraphicsContext3DCommandBufferImpl> context3d_; |
| 86 std::unique_ptr<gpu::gles2::GLES2TraceImplementation> trace_impl_; | 87 std::unique_ptr<gpu::gles2::GLES2TraceImplementation> trace_impl_; |
| 87 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; | 88 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; |
| 88 | 89 |
| 89 gpu::SharedMemoryLimits memory_limits_; | 90 gpu::SharedMemoryLimits memory_limits_; |
| 90 gpu::gles2::ContextCreationAttribHelper attributes_; | 91 gpu::gles2::ContextCreationAttribHelper attributes_; |
| 91 command_buffer_metrics::ContextType context_type_; | 92 command_buffer_metrics::ContextType context_type_; |
| 92 | 93 |
| 93 LostContextCallback lost_context_callback_; | 94 LostContextCallback lost_context_callback_; |
| 94 | 95 |
| 95 base::Lock context_lock_; | |
| 96 | |
| 97 class LostContextCallbackProxy; | 96 class LostContextCallbackProxy; |
| 98 std::unique_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; | 97 std::unique_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; |
| 99 }; | 98 }; |
| 100 | 99 |
| 101 } // namespace content | 100 } // namespace content |
| 102 | 101 |
| 103 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ | 102 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ |
| OLD | NEW |