| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 case PlatformColor::SOURCE_FORMAT_BGRA8: | 105 case PlatformColor::SOURCE_FORMAT_BGRA8: |
| 106 capabilities.texture_format_bgra8888 = true; | 106 capabilities.texture_format_bgra8888 = true; |
| 107 break; | 107 break; |
| 108 } | 108 } |
| 109 return capabilities; | 109 return capabilities; |
| 110 } | 110 } |
| 111 | 111 |
| 112 void TestInProcessContextProvider::DeleteCachedResources() { | 112 void TestInProcessContextProvider::DeleteCachedResources() { |
| 113 if (gr_context_) | 113 if (gr_context_) |
| 114 gr_context_->FreeGpuResources(); | 114 gr_context_->FreeGpuResources(); |
| 115 |
| 116 ContextSupport()->TrimResources(); |
| 115 } | 117 } |
| 116 | 118 |
| 117 void TestInProcessContextProvider::SetLostContextCallback( | 119 void TestInProcessContextProvider::SetLostContextCallback( |
| 118 const LostContextCallback& lost_context_callback) {} | 120 const LostContextCallback& lost_context_callback) {} |
| 119 | 121 |
| 120 } // namespace cc | 122 } // namespace cc |
| OLD | NEW |