OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/output/delegating_renderer.h" | 5 #include "cc/output/delegating_renderer.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 } | 185 } |
186 gpu::ManagedMemoryStats stats; | 186 gpu::ManagedMemoryStats stats; |
187 stats.bytes_required = bytes_visible; | 187 stats.bytes_required = bytes_visible; |
188 stats.bytes_nice_to_have = bytes_visible_and_nearby; | 188 stats.bytes_nice_to_have = bytes_visible_and_nearby; |
189 stats.bytes_allocated = bytes_allocated; | 189 stats.bytes_allocated = bytes_allocated; |
190 stats.backbuffer_requested = false; | 190 stats.backbuffer_requested = false; |
191 | 191 |
192 context_provider->ContextSupport()->SendManagedMemoryStats(stats); | 192 context_provider->ContextSupport()->SendManagedMemoryStats(stats); |
193 } | 193 } |
194 | 194 |
195 void DelegatingRenderer::SetDiscardBackBufferWhenNotVisible(bool discard) { | |
196 // Nothing to do, we don't have a back buffer. | |
197 } | |
198 | |
199 } // namespace cc | 195 } // namespace cc |
OLD | NEW |