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

Side by Side Diff: cc/output/output_surface.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, 5 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/output_surface.h ('k') | cc/output/output_surface_unittest.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/output/output_surface.h" 5 #include "cc/output/output_surface.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/debug/trace_event.h" 13 #include "base/debug/trace_event.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.h"
16 #include "base/metrics/histogram.h" 16 #include "base/metrics/histogram.h"
17 #include "base/strings/string_split.h" 17 #include "base/strings/string_split.h"
18 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
19 #include "cc/output/compositor_frame.h" 19 #include "cc/output/compositor_frame.h"
20 #include "cc/output/compositor_frame_ack.h" 20 #include "cc/output/compositor_frame_ack.h"
21 #include "cc/output/managed_memory_policy.h" 21 #include "cc/output/managed_memory_policy.h"
22 #include "cc/output/output_surface_client.h" 22 #include "cc/output/output_surface_client.h"
23 #include "cc/scheduler/delay_based_time_source.h" 23 #include "cc/scheduler/delay_based_time_source.h"
24 #include "gpu/command_buffer/client/context_support.h" 24 #include "gpu/command_buffer/client/context_support.h"
25 #include "gpu/command_buffer/client/gles2_interface.h" 25 #include "gpu/command_buffer/client/gles2_interface.h"
26 #include "third_party/khronos/GLES2/gl2.h"
27 #include "third_party/khronos/GLES2/gl2ext.h"
28 #include "ui/gfx/frame_time.h" 26 #include "ui/gfx/frame_time.h"
29 #include "ui/gfx/rect.h" 27 #include "ui/gfx/geometry/rect.h"
30 #include "ui/gfx/size.h" 28 #include "ui/gfx/geometry/size.h"
31 29
32 using std::set; 30 using std::set;
33 using std::string; 31 using std::string;
34 using std::vector; 32 using std::vector;
35 33
36 namespace cc { 34 namespace cc {
37 35
38 OutputSurface::OutputSurface(scoped_refptr<ContextProvider> context_provider) 36 OutputSurface::OutputSurface(scoped_refptr<ContextProvider> context_provider)
39 : client_(NULL), 37 : client_(NULL),
40 context_provider_(context_provider), 38 context_provider_(context_provider),
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 TRACE_EVENT1("cc", "OutputSurface::SetMemoryPolicy", 256 TRACE_EVENT1("cc", "OutputSurface::SetMemoryPolicy",
259 "bytes_limit_when_visible", policy.bytes_limit_when_visible); 257 "bytes_limit_when_visible", policy.bytes_limit_when_visible);
260 // Just ignore the memory manager when it says to set the limit to zero 258 // Just ignore the memory manager when it says to set the limit to zero
261 // bytes. This will happen when the memory manager thinks that the renderer 259 // bytes. This will happen when the memory manager thinks that the renderer
262 // is not visible (which the renderer knows better). 260 // is not visible (which the renderer knows better).
263 if (policy.bytes_limit_when_visible) 261 if (policy.bytes_limit_when_visible)
264 client_->SetMemoryPolicy(policy); 262 client_->SetMemoryPolicy(policy);
265 } 263 }
266 264
267 } // namespace cc 265 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/output_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698