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

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

Issue 1394263004: android webview: allow cc to fail hardware draw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + expand test Created 5 years, 2 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/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/location.h" 10 #include "base/location.h"
(...skipping 2468 matching lines...) Expand 10 before | Expand all | Expand 10 after
2479 void AfterTest() override {} 2479 void AfterTest() override {}
2480 2480
2481 private: 2481 private:
2482 FakeContentLayerClient client_; 2482 FakeContentLayerClient client_;
2483 scoped_refptr<Layer> root_layer_; 2483 scoped_refptr<Layer> root_layer_;
2484 scoped_refptr<Layer> parent_layer_; 2484 scoped_refptr<Layer> parent_layer_;
2485 scoped_refptr<Layer> child_layer_; 2485 scoped_refptr<Layer> child_layer_;
2486 int swap_count_; 2486 int swap_count_;
2487 }; 2487 };
2488 2488
2489 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestResourcelessSoftwareDraw); 2489 MULTI_THREAD_TEST_F(LayerTreeHostTestResourcelessSoftwareDraw);
danakj 2015/10/22 18:49:23 Leave a comment why this can't/shouldn't test sing
boliu 2015/10/22 21:50:08 Done.
2490 2490
2491 // Test for UI Resource management. 2491 // Test for UI Resource management.
2492 class LayerTreeHostTestUIResource : public LayerTreeHostTest { 2492 class LayerTreeHostTestUIResource : public LayerTreeHostTest {
2493 public: 2493 public:
2494 LayerTreeHostTestUIResource() : num_ui_resources_(0) {} 2494 LayerTreeHostTestUIResource() : num_ui_resources_(0) {}
2495 2495
2496 void InitializeSettings(LayerTreeSettings* settings) override { 2496 void InitializeSettings(LayerTreeSettings* settings) override {
2497 settings->renderer_settings.texture_id_allocation_chunk_size = 1; 2497 settings->renderer_settings.texture_id_allocation_chunk_size = 1;
2498 } 2498 }
2499 2499
(...skipping 3875 matching lines...) Expand 10 before | Expand all | Expand 10 after
6375 EndTest(); 6375 EndTest();
6376 } 6376 }
6377 6377
6378 void AfterTest() override {} 6378 void AfterTest() override {}
6379 }; 6379 };
6380 6380
6381 MULTI_THREAD_TEST_F(LayerTreeHostTestDestroyWhileInitializingOutputSurface); 6381 MULTI_THREAD_TEST_F(LayerTreeHostTestDestroyWhileInitializingOutputSurface);
6382 6382
6383 } // namespace 6383 } // namespace
6384 } // namespace cc 6384 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698