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

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

Issue 1762823002: Remove runtime toggling of throttling frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/remote_channel_main.h ('k') | cc/trees/single_thread_proxy.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/remote_channel_main.h" 5 #include "cc/trees/remote_channel_main.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "cc/proto/base_conversions.h" 8 #include "cc/proto/base_conversions.h"
9 #include "cc/proto/compositor_message.pb.h" 9 #include "cc/proto/compositor_message.pb.h"
10 #include "cc/proto/compositor_message_to_impl.pb.h" 10 #include "cc/proto/compositor_message_to_impl.pb.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 void RemoteChannelMain::OnProtoReceived( 48 void RemoteChannelMain::OnProtoReceived(
49 scoped_ptr<proto::CompositorMessage> proto) { 49 scoped_ptr<proto::CompositorMessage> proto) {
50 DCHECK(task_runner_provider_->IsMainThread()); 50 DCHECK(task_runner_provider_->IsMainThread());
51 DCHECK(proto->has_to_main()); 51 DCHECK(proto->has_to_main());
52 52
53 HandleProto(proto->to_main()); 53 HandleProto(proto->to_main());
54 } 54 }
55 55
56 void RemoteChannelMain::SetThrottleFrameProductionOnImpl(bool throttle) {}
57
58 void RemoteChannelMain::UpdateTopControlsStateOnImpl( 56 void RemoteChannelMain::UpdateTopControlsStateOnImpl(
59 TopControlsState constraints, 57 TopControlsState constraints,
60 TopControlsState current, 58 TopControlsState current,
61 bool animate) {} 59 bool animate) {}
62 60
63 void RemoteChannelMain::InitializeOutputSurfaceOnImpl( 61 void RemoteChannelMain::InitializeOutputSurfaceOnImpl(
64 OutputSurface* output_surface) { 62 OutputSurface* output_surface) {
65 NOTREACHED() << "Should not be called on the server LayerTreeHost"; 63 NOTREACHED() << "Should not be called on the server LayerTreeHost";
66 } 64 }
67 65
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 243
246 void RemoteChannelMain::DidCompleteSwapBuffers() { 244 void RemoteChannelMain::DidCompleteSwapBuffers() {
247 proxy_main_->DidCompleteSwapBuffers(); 245 proxy_main_->DidCompleteSwapBuffers();
248 } 246 }
249 247
250 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const { 248 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const {
251 return task_runner_provider_->MainThreadTaskRunner(); 249 return task_runner_provider_->MainThreadTaskRunner();
252 } 250 }
253 251
254 } // namespace cc 252 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/remote_channel_main.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698