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

Side by Side Diff: cc/test/layer_tree_test.cc

Issue 1602343002: compositor-worker: cc->blink mutation plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-worker-ian-patch
Patch Set: Fix blimp issue Created 4 years, 11 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 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/test/layer_tree_test.h" 5 #include "cc/test/layer_tree_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 366 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
367 const gfx::Vector2dF& outer_delta, 367 const gfx::Vector2dF& outer_delta,
368 const gfx::Vector2dF& elastic_overscroll_delta, 368 const gfx::Vector2dF& elastic_overscroll_delta,
369 float page_scale, 369 float page_scale,
370 float top_controls_delta) override { 370 float top_controls_delta) override {
371 test_hooks_->ApplyViewportDeltas(inner_delta, outer_delta, 371 test_hooks_->ApplyViewportDeltas(inner_delta, outer_delta,
372 elastic_overscroll_delta, page_scale, 372 elastic_overscroll_delta, page_scale,
373 top_controls_delta); 373 top_controls_delta);
374 } 374 }
375 375
376 void ApplyMutations(const LayerTreeMutations& mutations) override {}
377
376 void RequestNewOutputSurface() override { 378 void RequestNewOutputSurface() override {
377 test_hooks_->RequestNewOutputSurface(); 379 test_hooks_->RequestNewOutputSurface();
378 } 380 }
379 381
380 void DidInitializeOutputSurface() override { 382 void DidInitializeOutputSurface() override {
381 test_hooks_->DidInitializeOutputSurface(); 383 test_hooks_->DidInitializeOutputSurface();
382 } 384 }
383 385
384 void SendBeginFramesToChildren(const BeginFrameArgs& args) override { 386 void SendBeginFramesToChildren(const BeginFrameArgs& args) override {
385 test_hooks_->SendBeginFramesToChildren(args); 387 test_hooks_->SendBeginFramesToChildren(args);
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 static_cast<ThreadedChannel*>(GetProxyMainForTest()->channel_main()); 935 static_cast<ThreadedChannel*>(GetProxyMainForTest()->channel_main());
934 ProxyImpl* proxy_impl = threaded_channel->GetProxyImplForTesting(); 936 ProxyImpl* proxy_impl = threaded_channel->GetProxyImplForTesting();
935 937
936 // We check for null ProxyImpl since ProxyImpl exists in the ThreadedChannel 938 // We check for null ProxyImpl since ProxyImpl exists in the ThreadedChannel
937 // only after it is initialized. 939 // only after it is initialized.
938 DCHECK(proxy_impl); 940 DCHECK(proxy_impl);
939 return static_cast<ProxyImplForTest*>(proxy_impl); 941 return static_cast<ProxyImplForTest*>(proxy_impl);
940 } 942 }
941 943
942 } // namespace cc 944 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698