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

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: damage before hardware to avoid invalidate-draw loop 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
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/single_thread_proxy.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/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 // Resourceless is not used for SingleThreadProxy, so it is unimplemented.
2490 MULTI_THREAD_TEST_F(LayerTreeHostTestResourcelessSoftwareDraw);
2490 2491
2491 // Test for UI Resource management. 2492 // Test for UI Resource management.
2492 class LayerTreeHostTestUIResource : public LayerTreeHostTest { 2493 class LayerTreeHostTestUIResource : public LayerTreeHostTest {
2493 public: 2494 public:
2494 LayerTreeHostTestUIResource() : num_ui_resources_(0) {} 2495 LayerTreeHostTestUIResource() : num_ui_resources_(0) {}
2495 2496
2496 void InitializeSettings(LayerTreeSettings* settings) override { 2497 void InitializeSettings(LayerTreeSettings* settings) override {
2497 settings->renderer_settings.texture_id_allocation_chunk_size = 1; 2498 settings->renderer_settings.texture_id_allocation_chunk_size = 1;
2498 } 2499 }
2499 2500
(...skipping 3875 matching lines...) Expand 10 before | Expand all | Expand 10 after
6375 EndTest(); 6376 EndTest();
6376 } 6377 }
6377 6378
6378 void AfterTest() override {} 6379 void AfterTest() override {}
6379 }; 6380 };
6380 6381
6381 MULTI_THREAD_TEST_F(LayerTreeHostTestDestroyWhileInitializingOutputSurface); 6382 MULTI_THREAD_TEST_F(LayerTreeHostTestDestroyWhileInitializingOutputSurface);
6382 6383
6383 } // namespace 6384 } // namespace
6384 } // namespace cc 6385 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698