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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 2323423002: cc: Add SwapPromiseManager and SurfaceSequenceGenerator. (Closed)
Patch Set: keep LTH in Layer. Created 4 years, 3 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
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 "content/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 } 619 }
620 620
621 void RenderWidgetCompositor::SetNeedsForcedRedraw() { 621 void RenderWidgetCompositor::SetNeedsForcedRedraw() {
622 layer_tree_host_->SetNextCommitForcesRedraw(); 622 layer_tree_host_->SetNextCommitForcesRedraw();
623 setNeedsAnimate(); 623 setNeedsAnimate();
624 } 624 }
625 625
626 std::unique_ptr<cc::SwapPromiseMonitor> 626 std::unique_ptr<cc::SwapPromiseMonitor>
627 RenderWidgetCompositor::CreateLatencyInfoSwapPromiseMonitor( 627 RenderWidgetCompositor::CreateLatencyInfoSwapPromiseMonitor(
628 ui::LatencyInfo* latency) { 628 ui::LatencyInfo* latency) {
629 return std::unique_ptr<cc::SwapPromiseMonitor>( 629 return base::MakeUnique<cc::LatencyInfoSwapPromiseMonitor>(
630 new cc::LatencyInfoSwapPromiseMonitor(latency, layer_tree_host_.get(), 630 latency, layer_tree_host_->GetSwapPromiseManager(), nullptr);
631 NULL));
632 } 631 }
633 632
634 void RenderWidgetCompositor::QueueSwapPromise( 633 void RenderWidgetCompositor::QueueSwapPromise(
635 std::unique_ptr<cc::SwapPromise> swap_promise) { 634 std::unique_ptr<cc::SwapPromise> swap_promise) {
636 layer_tree_host_->QueueSwapPromise(std::move(swap_promise)); 635 layer_tree_host_->QueueSwapPromise(std::move(swap_promise));
637 } 636 }
638 637
639 int RenderWidgetCompositor::GetSourceFrameNumber() const { 638 int RenderWidgetCompositor::GetSourceFrameNumber() const {
640 return layer_tree_host_->SourceFrameNumber(); 639 return layer_tree_host_->SourceFrameNumber();
641 } 640 }
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 1142
1144 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized)); 1143 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized));
1145 } 1144 }
1146 1145
1147 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( 1146 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor(
1148 float device_scale) { 1147 float device_scale) {
1149 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale); 1148 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale);
1150 } 1149 }
1151 1150
1152 } // namespace content 1151 } // namespace content
OLDNEW
« cc/trees/layer_tree_host_unittest_serialization.cc ('K') | « cc/trees/swap_promise_monitor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698