Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CC_OUTPUT_IN_PROCESS_CONTEXT_PROVIDER_H_ | 5 #ifndef CC_OUTPUT_IN_PROCESS_CONTEXT_PROVIDER_H_ |
| 6 #define CC_OUTPUT_IN_PROCESS_CONTEXT_PROVIDER_H_ | 6 #define CC_OUTPUT_IN_PROCESS_CONTEXT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 58 uint32_t GetCopyTextureInternalFormat(); | 58 uint32_t GetCopyTextureInternalFormat(); |
| 59 | 59 |
| 60 void SetSwapBuffersCompletionCallback( | 60 void SetSwapBuffersCompletionCallback( |
| 61 const gpu::InProcessCommandBuffer::SwapBuffersCompletionCallback& | 61 const gpu::InProcessCommandBuffer::SwapBuffersCompletionCallback& |
| 62 callback); | 62 callback); |
| 63 | 63 |
| 64 void SetUpdateVSyncParametersCallback( | 64 void SetUpdateVSyncParametersCallback( |
| 65 const gpu::InProcessCommandBuffer::UpdateVSyncParametersCallback& | 65 const gpu::InProcessCommandBuffer::UpdateVSyncParametersCallback& |
| 66 callback); | 66 callback); |
| 67 | 67 |
| 68 gpu::GLInProcessContext* context() { return context_.get(); } | |
|
mfomitchev
2017/03/23 15:25:17
Is this ok?
Fady Samuel
2017/03/23 17:24:37
Can we plumb SetLatencyInfo in instead?
| |
| 69 | |
| 68 protected: | 70 protected: |
| 69 friend class base::RefCountedThreadSafe<InProcessContextProvider>; | 71 friend class base::RefCountedThreadSafe<InProcessContextProvider>; |
| 70 ~InProcessContextProvider() override; | 72 ~InProcessContextProvider() override; |
| 71 | 73 |
| 72 private: | 74 private: |
| 73 const gpu::gles2::ContextCreationAttribHelper attributes_; | 75 const gpu::gles2::ContextCreationAttribHelper attributes_; |
| 74 | 76 |
| 75 base::Lock context_lock_; | 77 base::Lock context_lock_; |
| 76 std::unique_ptr<gpu::GLInProcessContext> context_; | 78 std::unique_ptr<gpu::GLInProcessContext> context_; |
| 77 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; | 79 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; |
| 78 std::unique_ptr<ContextCacheController> cache_controller_; | 80 std::unique_ptr<ContextCacheController> cache_controller_; |
| 79 }; | 81 }; |
| 80 | 82 |
| 81 } // namespace cc | 83 } // namespace cc |
| 82 | 84 |
| 83 #endif // CC_OUTPUT_IN_PROCESS_CONTEXT_PROVIDER_H_ | 85 #endif // CC_OUTPUT_IN_PROCESS_CONTEXT_PROVIDER_H_ |
| OLD | NEW |