| 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 UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ | 5 #ifndef UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ |
| 6 #define UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ | 6 #define UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 const gpu::gles2::ContextCreationAttribHelper& attribs, | 45 const gpu::gles2::ContextCreationAttribHelper& attribs, |
| 46 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 46 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 47 gpu::ImageFactory* image_factory, | 47 gpu::ImageFactory* image_factory, |
| 48 bool lose_context_when_out_of_memory, | 48 bool lose_context_when_out_of_memory, |
| 49 gfx::AcceleratedWidget window, | 49 gfx::AcceleratedWidget window, |
| 50 const std::string& debug_name); | 50 const std::string& debug_name); |
| 51 ~InProcessContextProvider() override; | 51 ~InProcessContextProvider() override; |
| 52 | 52 |
| 53 // cc::ContextProvider: | 53 // cc::ContextProvider: |
| 54 bool BindToCurrentThread() override; | 54 bool BindToCurrentThread() override; |
| 55 void DetachFromThread() override; |
| 55 Capabilities ContextCapabilities() override; | 56 Capabilities ContextCapabilities() override; |
| 56 gpu::gles2::GLES2Interface* ContextGL() override; | 57 gpu::gles2::GLES2Interface* ContextGL() override; |
| 57 gpu::ContextSupport* ContextSupport() override; | 58 gpu::ContextSupport* ContextSupport() override; |
| 58 class GrContext* GrContext() override; | 59 class GrContext* GrContext() override; |
| 59 void InvalidateGrContext(uint32_t state) override; | 60 void InvalidateGrContext(uint32_t state) override; |
| 60 void SetupLock() override; | 61 void SetupLock() override; |
| 61 base::Lock* GetLock() override; | 62 base::Lock* GetLock() override; |
| 62 void VerifyContexts() override; | 63 void VerifyContexts() override; |
| 63 void DeleteCachedResources() override; | 64 void DeleteCachedResources() override; |
| 64 bool DestroyedOnMainThread() override; | 65 bool DestroyedOnMainThread() override; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 90 bool destroyed_; | 91 bool destroyed_; |
| 91 | 92 |
| 92 base::Lock context_lock_; | 93 base::Lock context_lock_; |
| 93 | 94 |
| 94 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider); | 95 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace ui | 98 } // namespace ui |
| 98 | 99 |
| 99 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ | 100 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ |
| OLD | NEW |