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

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

Issue 1778853003: Fold BeginFrameSource::SetClientReady into AddObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scheduler_always_external
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
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 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 951
952 scoped_ptr<OutputSurface> LayerTreeTest::CreateOutputSurface() { 952 scoped_ptr<OutputSurface> LayerTreeTest::CreateOutputSurface() {
953 scoped_ptr<FakeOutputSurface> output_surface = CreateFakeOutputSurface(); 953 scoped_ptr<FakeOutputSurface> output_surface = CreateFakeOutputSurface();
954 DCHECK_EQ(delegating_renderer_, 954 DCHECK_EQ(delegating_renderer_,
955 output_surface->capabilities().delegated_rendering); 955 output_surface->capabilities().delegated_rendering);
956 output_surface_ = output_surface.get(); 956 output_surface_ = output_surface.get();
957 957
958 if (settings_.use_external_begin_frame_source && 958 if (settings_.use_external_begin_frame_source &&
959 settings_.wait_for_beginframe_interval) { 959 settings_.wait_for_beginframe_interval) {
960 DCHECK(external_begin_frame_source_); 960 DCHECK(external_begin_frame_source_);
961 DCHECK(external_begin_frame_source_->is_ready());
962 } 961 }
963 return std::move(output_surface); 962 return std::move(output_surface);
964 } 963 }
965 964
966 scoped_ptr<FakeOutputSurface> LayerTreeTest::CreateFakeOutputSurface() { 965 scoped_ptr<FakeOutputSurface> LayerTreeTest::CreateFakeOutputSurface() {
967 if (delegating_renderer_) 966 if (delegating_renderer_)
968 return FakeOutputSurface::CreateDelegating3d(); 967 return FakeOutputSurface::CreateDelegating3d();
969 else 968 else
970 return FakeOutputSurface::Create3d(); 969 return FakeOutputSurface::Create3d();
971 } 970 }
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 1073
1075 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const { 1074 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const {
1076 DCHECK(IsRemoteTest()); 1075 DCHECK(IsRemoteTest());
1077 DCHECK(remote_client_layer_tree_host_); 1076 DCHECK(remote_client_layer_tree_host_);
1078 1077
1079 return static_cast<RemoteChannelImplForTest*>( 1078 return static_cast<RemoteChannelImplForTest*>(
1080 remote_client_layer_tree_host_->proxy()); 1079 remote_client_layer_tree_host_->proxy());
1081 } 1080 }
1082 1081
1083 } // namespace cc 1082 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698