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

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

Issue 19403002: Use a direct include of the message_loop header in cc/, chrome_frame/, cloud_print/, components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/output/renderer_pixeltest.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 <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/debug/trace_event.h" 12 #include "base/debug/trace_event.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/strings/string_split.h" 15 #include "base/strings/string_split.h"
16 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
17 #include "cc/output/compositor_frame.h" 17 #include "cc/output/compositor_frame.h"
18 #include "cc/output/managed_memory_policy.h" 18 #include "cc/output/managed_memory_policy.h"
19 #include "cc/output/output_surface_client.h" 19 #include "cc/output/output_surface_client.h"
20 #include "cc/scheduler/delay_based_time_source.h" 20 #include "cc/scheduler/delay_based_time_source.h"
21 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 21 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
22 #include "third_party/WebKit/public/platform/WebGraphicsMemoryAllocation.h" 22 #include "third_party/WebKit/public/platform/WebGraphicsMemoryAllocation.h"
23 #include "third_party/khronos/GLES2/gl2.h" 23 #include "third_party/khronos/GLES2/gl2.h"
24 #include "third_party/khronos/GLES2/gl2ext.h" 24 #include "third_party/khronos/GLES2/gl2ext.h"
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 439
440 void OutputSurface::SetMemoryPolicy(const ManagedMemoryPolicy& policy, 440 void OutputSurface::SetMemoryPolicy(const ManagedMemoryPolicy& policy,
441 bool discard_backbuffer_when_not_visible) { 441 bool discard_backbuffer_when_not_visible) {
442 TRACE_EVENT2("cc", "OutputSurface::SetMemoryPolicy", 442 TRACE_EVENT2("cc", "OutputSurface::SetMemoryPolicy",
443 "bytes_limit_when_visible", policy.bytes_limit_when_visible, 443 "bytes_limit_when_visible", policy.bytes_limit_when_visible,
444 "discard_backbuffer", discard_backbuffer_when_not_visible); 444 "discard_backbuffer", discard_backbuffer_when_not_visible);
445 client_->SetMemoryPolicy(policy, discard_backbuffer_when_not_visible); 445 client_->SetMemoryPolicy(policy, discard_backbuffer_when_not_visible);
446 } 446 }
447 447
448 } // namespace cc 448 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698