| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 gpu::ContextSupport* ContextSupport() override; | 46 gpu::ContextSupport* ContextSupport() override; |
| 47 class GrContext* GrContext() override; | 47 class GrContext* GrContext() override; |
| 48 void InvalidateGrContext(uint32_t state) override; | 48 void InvalidateGrContext(uint32_t state) override; |
| 49 void SetupLock() override; | 49 void SetupLock() override; |
| 50 base::Lock* GetLock() override; | 50 base::Lock* GetLock() override; |
| 51 void VerifyContexts() override; | 51 void VerifyContexts() override; |
| 52 void DeleteCachedResources() override; | 52 void DeleteCachedResources() override; |
| 53 bool DestroyedOnMainThread() override; | 53 bool DestroyedOnMainThread() override; |
| 54 void SetLostContextCallback( | 54 void SetLostContextCallback( |
| 55 const LostContextCallback& lost_context_callback) override; | 55 const LostContextCallback& lost_context_callback) override; |
| 56 void SetMemoryPolicyChangedCallback( | |
| 57 const MemoryPolicyChangedCallback& memory_policy_changed_callback) | |
| 58 override; | |
| 59 | 56 |
| 60 private: | 57 private: |
| 61 InProcessContextProvider( | 58 InProcessContextProvider( |
| 62 const gpu::gles2::ContextCreationAttribHelper& attribs, | 59 const gpu::gles2::ContextCreationAttribHelper& attribs, |
| 63 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 60 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 64 gpu::ImageFactory* image_factory, | 61 gpu::ImageFactory* image_factory, |
| 65 gfx::AcceleratedWidget window, | 62 gfx::AcceleratedWidget window, |
| 66 const std::string& debug_name); | 63 const std::string& debug_name); |
| 67 ~InProcessContextProvider() override; | 64 ~InProcessContextProvider() override; |
| 68 | 65 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 87 bool destroyed_; | 84 bool destroyed_; |
| 88 | 85 |
| 89 base::Lock context_lock_; | 86 base::Lock context_lock_; |
| 90 | 87 |
| 91 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider); | 88 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider); |
| 92 }; | 89 }; |
| 93 | 90 |
| 94 } // namespace ui | 91 } // namespace ui |
| 95 | 92 |
| 96 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ | 93 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ |
| OLD | NEW |