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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 Capabilities ContextCapabilities() override; | 44 Capabilities ContextCapabilities() override; |
45 gpu::gles2::GLES2Interface* ContextGL() override; | 45 gpu::gles2::GLES2Interface* ContextGL() override; |
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 DeleteCachedResources() override; | 51 void DeleteCachedResources() override; |
52 void SetLostContextCallback( | 52 void SetLostContextCallback( |
53 const LostContextCallback& lost_context_callback) override; | 53 const LostContextCallback& lost_context_callback) override; |
| 54 void SetMemoryPolicyChangedCallback( |
| 55 const MemoryPolicyChangedCallback& memory_policy_changed_callback) |
| 56 override; |
54 | 57 |
55 private: | 58 private: |
56 InProcessContextProvider( | 59 InProcessContextProvider( |
57 const gpu::gles2::ContextCreationAttribHelper& attribs, | 60 const gpu::gles2::ContextCreationAttribHelper& attribs, |
58 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 61 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
59 gpu::ImageFactory* image_factory, | 62 gpu::ImageFactory* image_factory, |
60 gfx::AcceleratedWidget window, | 63 gfx::AcceleratedWidget window, |
61 const std::string& debug_name); | 64 const std::string& debug_name); |
62 ~InProcessContextProvider() override; | 65 ~InProcessContextProvider() override; |
63 | 66 |
(...skipping 15 matching lines...) Expand all Loading... |
79 LostContextCallback lost_context_callback_; | 82 LostContextCallback lost_context_callback_; |
80 | 83 |
81 base::Lock context_lock_; | 84 base::Lock context_lock_; |
82 | 85 |
83 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider); | 86 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider); |
84 }; | 87 }; |
85 | 88 |
86 } // namespace ui | 89 } // namespace ui |
87 | 90 |
88 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ | 91 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ |
OLD | NEW |