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

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

Issue 85693007: cc: Defer first OutputSurface creation until client is ready (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_unittest_context.cc » ('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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 2290 matching lines...) Expand 10 before | Expand all | Expand 10 after
2301 2301
2302 MULTI_THREAD_TEST_F(LayerTreeHostTestDeferCommits); 2302 MULTI_THREAD_TEST_F(LayerTreeHostTestDeferCommits);
2303 2303
2304 class LayerTreeHostWithProxy : public LayerTreeHost { 2304 class LayerTreeHostWithProxy : public LayerTreeHost {
2305 public: 2305 public:
2306 LayerTreeHostWithProxy(FakeLayerTreeHostClient* client, 2306 LayerTreeHostWithProxy(FakeLayerTreeHostClient* client,
2307 const LayerTreeSettings& settings, 2307 const LayerTreeSettings& settings,
2308 scoped_ptr<FakeProxy> proxy) 2308 scoped_ptr<FakeProxy> proxy)
2309 : LayerTreeHost(client, NULL, settings) { 2309 : LayerTreeHost(client, NULL, settings) {
2310 proxy->SetLayerTreeHost(this); 2310 proxy->SetLayerTreeHost(this);
2311 EXPECT_TRUE(InitializeForTesting(proxy.PassAs<Proxy>())); 2311 InitializeForTesting(proxy.PassAs<Proxy>());
2312 } 2312 }
2313 }; 2313 };
2314 2314
2315 TEST(LayerTreeHostTest, LimitPartialUpdates) { 2315 TEST(LayerTreeHostTest, LimitPartialUpdates) {
2316 // When partial updates are not allowed, max updates should be 0. 2316 // When partial updates are not allowed, max updates should be 0.
2317 { 2317 {
2318 FakeLayerTreeHostClient client(FakeLayerTreeHostClient::DIRECT_3D); 2318 FakeLayerTreeHostClient client(FakeLayerTreeHostClient::DIRECT_3D);
2319 2319
2320 scoped_ptr<FakeProxy> proxy(new FakeProxy); 2320 scoped_ptr<FakeProxy> proxy(new FakeProxy);
2321 proxy->GetRendererCapabilities().allow_partial_texture_updates = false; 2321 proxy->GetRendererCapabilities().allow_partial_texture_updates = false;
(...skipping 2444 matching lines...) Expand 10 before | Expand all | Expand 10 after
4766 4766
4767 EndTest(); 4767 EndTest();
4768 } 4768 }
4769 4769
4770 virtual void AfterTest() OVERRIDE {} 4770 virtual void AfterTest() OVERRIDE {}
4771 }; 4771 };
4772 4772
4773 MULTI_THREAD_TEST_F(LayerTreeHostTestSimpleSwapPromiseMonitor); 4773 MULTI_THREAD_TEST_F(LayerTreeHostTestSimpleSwapPromiseMonitor);
4774 4774
4775 } // namespace cc 4775 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_unittest_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698