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 |
11 #include "base/debug/trace_event.h" | 11 #include "base/trace_event/trace_event.h" |
12 #include "cc/output/compositor_frame_ack.h" | 12 #include "cc/output/compositor_frame_ack.h" |
13 #include "cc/output/context_provider.h" | 13 #include "cc/output/context_provider.h" |
14 #include "cc/quads/draw_quad.h" | 14 #include "cc/quads/draw_quad.h" |
15 #include "cc/quads/render_pass.h" | 15 #include "cc/quads/render_pass.h" |
16 #include "cc/resources/resource_provider.h" | 16 #include "cc/resources/resource_provider.h" |
17 #include "gpu/command_buffer/client/context_support.h" | 17 #include "gpu/command_buffer/client/context_support.h" |
18 #include "gpu/command_buffer/client/gles2_interface.h" | 18 #include "gpu/command_buffer/client/gles2_interface.h" |
19 | 19 |
20 | 20 |
21 namespace cc { | 21 namespace cc { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 } | 122 } |
123 } | 123 } |
124 // We loop visibility to the GPU process, since that's what manages memory. | 124 // We loop visibility to the GPU process, since that's what manages memory. |
125 // That will allow it to feed us with memory allocations that we can act | 125 // That will allow it to feed us with memory allocations that we can act |
126 // upon. | 126 // upon. |
127 if (context_provider) | 127 if (context_provider) |
128 context_provider->ContextSupport()->SetSurfaceVisible(visible()); | 128 context_provider->ContextSupport()->SetSurfaceVisible(visible()); |
129 } | 129 } |
130 | 130 |
131 } // namespace cc | 131 } // namespace cc |
OLD | NEW |