OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "cc/test/test_in_process_context_provider.h" | 5 #include "cc/test/test_in_process_context_provider.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "cc/resources/platform_color.h" | 8 #include "cc/resources/platform_color.h" |
9 #include "gpu/GLES2/gl2extchromium.h" | 9 #include "gpu/GLES2/gl2extchromium.h" |
10 #include "gpu/command_buffer/client/gl_in_process_context.h" | 10 #include "gpu/command_buffer/client/gl_in_process_context.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 return capabilities; | 156 return capabilities; |
157 } | 157 } |
158 | 158 |
159 void TestInProcessContextProvider::VerifyContexts() {} | 159 void TestInProcessContextProvider::VerifyContexts() {} |
160 | 160 |
161 void TestInProcessContextProvider::DeleteCachedResources() { | 161 void TestInProcessContextProvider::DeleteCachedResources() { |
162 if (gr_context_) | 162 if (gr_context_) |
163 gr_context_->freeGpuResources(); | 163 gr_context_->freeGpuResources(); |
164 } | 164 } |
165 | 165 |
166 bool TestInProcessContextProvider::DestroyedOnMainThread() { return false; } | 166 bool TestInProcessContextProvider::HasBeenLostOnMainThread() { |
| 167 return false; |
| 168 } |
167 | 169 |
168 void TestInProcessContextProvider::SetLostContextCallback( | 170 void TestInProcessContextProvider::SetLostContextCallback( |
169 const LostContextCallback& lost_context_callback) {} | 171 const LostContextCallback& lost_context_callback) {} |
170 | 172 |
171 void TestInProcessContextProvider::SetMemoryPolicyChangedCallback( | 173 void TestInProcessContextProvider::SetMemoryPolicyChangedCallback( |
172 const MemoryPolicyChangedCallback& memory_policy_changed_callback) {} | 174 const MemoryPolicyChangedCallback& memory_policy_changed_callback) {} |
173 | 175 |
| 176 bool TestInProcessContextProvider::HasBeenDestroyed() { |
| 177 return false; |
| 178 } |
| 179 |
174 } // namespace cc | 180 } // namespace cc |
OLD | NEW |