Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: cc/output/delegating_renderer.cc

Issue 416273005: cc/output: cleanup: Remove unnecessary #includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/output/delegated_frame_data.h ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/debug/trace_event.h"
12 #include "base/strings/string_split.h"
13 #include "base/strings/string_util.h"
14 #include "base/strings/stringprintf.h"
15 #include "cc/output/compositor_frame_ack.h" 12 #include "cc/output/compositor_frame_ack.h"
16 #include "cc/quads/checkerboard_draw_quad.h" 13 #include "cc/output/context_provider.h"
17 #include "cc/quads/debug_border_draw_quad.h" 14 #include "cc/quads/draw_quad.h"
18 #include "cc/quads/render_pass.h" 15 #include "cc/quads/render_pass.h"
19 #include "cc/quads/render_pass_draw_quad.h"
20 #include "cc/quads/solid_color_draw_quad.h"
21 #include "cc/quads/texture_draw_quad.h"
22 #include "cc/quads/tile_draw_quad.h"
23 #include "cc/quads/yuv_video_draw_quad.h"
24 #include "cc/resources/resource_provider.h" 16 #include "cc/resources/resource_provider.h"
25 #include "gpu/command_buffer/client/context_support.h" 17 #include "gpu/command_buffer/client/context_support.h"
26 #include "gpu/command_buffer/client/gles2_interface.h" 18 #include "gpu/command_buffer/client/gles2_interface.h"
27 #include "gpu/command_buffer/common/gpu_memory_allocation.h"
28 #include "third_party/khronos/GLES2/gl2ext.h"
29 19
30 20
31 namespace cc { 21 namespace cc {
32 22
33 scoped_ptr<DelegatingRenderer> DelegatingRenderer::Create( 23 scoped_ptr<DelegatingRenderer> DelegatingRenderer::Create(
34 RendererClient* client, 24 RendererClient* client,
35 const LayerTreeSettings* settings, 25 const LayerTreeSettings* settings,
36 OutputSurface* output_surface, 26 OutputSurface* output_surface,
37 ResourceProvider* resource_provider) { 27 ResourceProvider* resource_provider) {
38 return make_scoped_ptr(new DelegatingRenderer( 28 return make_scoped_ptr(new DelegatingRenderer(
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 130 }
141 } 131 }
142 // We loop visibility to the GPU process, since that's what manages memory. 132 // We loop visibility to the GPU process, since that's what manages memory.
143 // That will allow it to feed us with memory allocations that we can act 133 // That will allow it to feed us with memory allocations that we can act
144 // upon. 134 // upon.
145 if (context_provider) 135 if (context_provider)
146 context_provider->ContextSupport()->SetSurfaceVisible(visible()); 136 context_provider->ContextSupport()->SetSurfaceVisible(visible());
147 } 137 }
148 138
149 } // namespace cc 139 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/delegated_frame_data.h ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698