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

Side by Side Diff: sky/viewer/platform/weblayertreeview_impl.cc

Issue 669813003: Update from chromium https://crrev.com/301725/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « skia/skia_system.gypi ('k') | testing/android/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "sky/viewer/platform/weblayertreeview_impl.h" 5 #include "sky/viewer/platform/weblayertreeview_impl.h"
6 6
7 #include "base/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "cc/layers/layer.h" 8 #include "cc/layers/layer.h"
9 #include "cc/output/begin_frame_args.h" 9 #include "cc/output/begin_frame_args.h"
10 #include "cc/trees/layer_tree_host.h" 10 #include "cc/trees/layer_tree_host.h"
(...skipping 21 matching lines...) Expand all
32 base::Bind(&WebLayerTreeViewImpl::OnSurfaceConnectionCreated, 32 base::Bind(&WebLayerTreeViewImpl::OnSurfaceConnectionCreated,
33 main_thread_bound_weak_ptr_)); 33 main_thread_bound_weak_ptr_));
34 34
35 cc::LayerTreeSettings settings; 35 cc::LayerTreeSettings settings;
36 36
37 // For web contents, layer transforms should scale up the contents of layers 37 // For web contents, layer transforms should scale up the contents of layers
38 // to keep content always crisp when possible. 38 // to keep content always crisp when possible.
39 settings.layer_transforms_should_scale_layer_contents = true; 39 settings.layer_transforms_should_scale_layer_contents = true;
40 40
41 cc::SharedBitmapManager* shared_bitmap_manager = NULL; 41 cc::SharedBitmapManager* shared_bitmap_manager = NULL;
42 cc::GpuMemoryBufferManager* gpu_memory_buffer_manager = NULL; 42 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager = NULL;
43 43
44 layer_tree_host_ = 44 layer_tree_host_ =
45 cc::LayerTreeHost::CreateThreaded(this, 45 cc::LayerTreeHost::CreateThreaded(this,
46 shared_bitmap_manager, 46 shared_bitmap_manager,
47 gpu_memory_buffer_manager, 47 gpu_memory_buffer_manager,
48 settings, 48 settings,
49 base::MessageLoopProxy::current(), 49 base::MessageLoopProxy::current(),
50 compositor_message_loop_proxy); 50 compositor_message_loop_proxy);
51 DCHECK(layer_tree_host_); 51 DCHECK(layer_tree_host_);
52 } 52 }
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 base::Bind(&WebLayerTreeViewImpl::DidCreateSurfaceOnMainThread, 209 base::Bind(&WebLayerTreeViewImpl::DidCreateSurfaceOnMainThread,
210 main_thread_bound_weak_ptr_, 210 main_thread_bound_weak_ptr_,
211 id)); 211 id));
212 } 212 }
213 213
214 void WebLayerTreeViewImpl::DidCreateSurfaceOnMainThread(cc::SurfaceId id) { 214 void WebLayerTreeViewImpl::DidCreateSurfaceOnMainThread(cc::SurfaceId id) {
215 view_->SetSurfaceId(mojo::SurfaceId::From(id)); 215 view_->SetSurfaceId(mojo::SurfaceId::From(id));
216 } 216 }
217 217
218 } // namespace sky 218 } // namespace sky
OLDNEW
« no previous file with comments | « skia/skia_system.gypi ('k') | testing/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698