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

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_common.h » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <stack> 8 #include <stack>
9 #include <string> 9 #include <string>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "cc/trees/tree_synchronizer.h" 44 #include "cc/trees/tree_synchronizer.h"
45 #include "ui/gfx/geometry/size_conversions.h" 45 #include "ui/gfx/geometry/size_conversions.h"
46 #include "ui/gfx/geometry/vector2d_conversions.h" 46 #include "ui/gfx/geometry/vector2d_conversions.h"
47 47
48 namespace { 48 namespace {
49 static base::StaticAtomicSequenceNumber s_layer_tree_host_sequence_number; 49 static base::StaticAtomicSequenceNumber s_layer_tree_host_sequence_number;
50 } 50 }
51 51
52 namespace cc { 52 namespace cc {
53 53
54 RendererCapabilities::RendererCapabilities(ResourceFormat best_texture_format,
55 bool allow_partial_texture_updates,
56 int max_texture_size,
57 bool using_shared_memory_resources)
58 : best_texture_format(best_texture_format),
59 allow_partial_texture_updates(allow_partial_texture_updates),
60 max_texture_size(max_texture_size),
61 using_shared_memory_resources(using_shared_memory_resources) {}
62
63 RendererCapabilities::RendererCapabilities()
64 : best_texture_format(RGBA_8888),
65 allow_partial_texture_updates(false),
66 max_texture_size(0),
67 using_shared_memory_resources(false) {}
68
69 RendererCapabilities::~RendererCapabilities() {}
70
71 scoped_ptr<LayerTreeHost> LayerTreeHost::CreateThreaded( 54 scoped_ptr<LayerTreeHost> LayerTreeHost::CreateThreaded(
72 LayerTreeHostClient* client, 55 LayerTreeHostClient* client,
73 SharedBitmapManager* shared_bitmap_manager, 56 SharedBitmapManager* shared_bitmap_manager,
74 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 57 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
75 const LayerTreeSettings& settings, 58 const LayerTreeSettings& settings,
76 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 59 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
77 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, 60 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner,
78 scoped_ptr<BeginFrameSource> external_begin_frame_source) { 61 scoped_ptr<BeginFrameSource> external_begin_frame_source) {
79 DCHECK(main_task_runner.get()); 62 DCHECK(main_task_runner.get());
80 DCHECK(impl_task_runner.get()); 63 DCHECK(impl_task_runner.get());
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 bool children_need_begin_frames) const { 1254 bool children_need_begin_frames) const {
1272 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames); 1255 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames);
1273 } 1256 }
1274 1257
1275 void LayerTreeHost::SendBeginFramesToChildren( 1258 void LayerTreeHost::SendBeginFramesToChildren(
1276 const BeginFrameArgs& args) const { 1259 const BeginFrameArgs& args) const {
1277 client_->SendBeginFramesToChildren(args); 1260 client_->SendBeginFramesToChildren(args);
1278 } 1261 }
1279 1262
1280 } // namespace cc 1263 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698