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

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

Issue 1831083002: cc: Force a redraw on initializing a new output surface for remote compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed updating the test. 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/test/layer_tree_test.h ('k') | cc/trees/remote_channel_impl.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 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 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 // We check for a null task_runner_provider here as we sometimes ask for the 993 // We check for a null task_runner_provider here as we sometimes ask for the
994 // layer tree host when the task_runner_provider does not exist, often for 994 // layer tree host when the task_runner_provider does not exist, often for
995 // checking settings after a test has completed. For example, 995 // checking settings after a test has completed. For example,
996 // LTHPixelResourceTest::RunPixelResourceTest. See elsewhere in this file for 996 // LTHPixelResourceTest::RunPixelResourceTest. See elsewhere in this file for
997 // other examples. 997 // other examples.
998 DCHECK(!task_runner_provider() || task_runner_provider()->IsMainThread() || 998 DCHECK(!task_runner_provider() || task_runner_provider()->IsMainThread() ||
999 task_runner_provider()->IsMainThreadBlocked()); 999 task_runner_provider()->IsMainThreadBlocked());
1000 return layer_tree_host_.get(); 1000 return layer_tree_host_.get();
1001 } 1001 }
1002 1002
1003 LayerTreeHost* LayerTreeTest::remote_client_layer_tree_host() {
1004 DCHECK(!task_runner_provider() || task_runner_provider()->IsMainThread() ||
1005 task_runner_provider()->IsMainThreadBlocked());
1006 DCHECK(IsRemoteTest());
1007 return remote_client_layer_tree_host_.get();
1008 }
1009
1003 ProxyMainForTest* LayerTreeTest::GetProxyMainForTest() const { 1010 ProxyMainForTest* LayerTreeTest::GetProxyMainForTest() const {
1004 DCHECK(HasImplThread()); 1011 DCHECK(HasImplThread());
1005 return static_cast<ProxyMainForTest*>(proxy()); 1012 return static_cast<ProxyMainForTest*>(proxy());
1006 } 1013 }
1007 1014
1008 ProxyImplForTest* LayerTreeTest::GetProxyImplForTest() const { 1015 ProxyImplForTest* LayerTreeTest::GetProxyImplForTest() const {
1009 DCHECK(HasImplThread()); 1016 DCHECK(HasImplThread());
1010 1017
1011 if (IsRemoteTest()) { 1018 if (IsRemoteTest()) {
1012 return GetRemoteChannelImplForTest()->proxy_impl_for_test(); 1019 return GetRemoteChannelImplForTest()->proxy_impl_for_test();
(...skipping 16 matching lines...) Expand all
1029 1036
1030 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const { 1037 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const {
1031 DCHECK(IsRemoteTest()); 1038 DCHECK(IsRemoteTest());
1032 DCHECK(remote_client_layer_tree_host_); 1039 DCHECK(remote_client_layer_tree_host_);
1033 1040
1034 return static_cast<RemoteChannelImplForTest*>( 1041 return static_cast<RemoteChannelImplForTest*>(
1035 remote_client_layer_tree_host_->proxy()); 1042 remote_client_layer_tree_host_->proxy());
1036 } 1043 }
1037 1044
1038 } // namespace cc 1045 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.h ('k') | cc/trees/remote_channel_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698