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

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

Issue 2231233002: cc: Remove the lie of "DirectRenderer" in LayerTreeTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no-ltt-delegating: ccpt Created 4 years, 4 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_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_copyrequest.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "cc/layers/heads_up_display_layer.h" 9 #include "cc/layers/heads_up_display_layer.h"
10 #include "cc/layers/layer_impl.h" 10 #include "cc/layers/layer_impl.h"
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 776
777 protected: 777 protected:
778 bool lose_after_evict_; 778 bool lose_after_evict_;
779 FakeContentLayerClient client_; 779 FakeContentLayerClient client_;
780 LayerTreeHostImpl* impl_host_; 780 LayerTreeHostImpl* impl_host_;
781 int num_commits_; 781 int num_commits_;
782 bool lost_context_; 782 bool lost_context_;
783 }; 783 };
784 784
785 TEST_F(LayerTreeHostContextTestLostContextAndEvictTextures, 785 TEST_F(LayerTreeHostContextTestLostContextAndEvictTextures,
786 LoseAfterEvict_SingleThread_DelegatingRenderer) { 786 LoseAfterEvict_SingleThread) {
787 lose_after_evict_ = true; 787 lose_after_evict_ = true;
788 RunTest(CompositorMode::SINGLE_THREADED, true); 788 RunTest(CompositorMode::SINGLE_THREADED);
789 } 789 }
790 790
791 TEST_F(LayerTreeHostContextTestLostContextAndEvictTextures, 791 TEST_F(LayerTreeHostContextTestLostContextAndEvictTextures,
792 LoseAfterEvict_MultiThread_DelegatingRenderer) { 792 LoseAfterEvict_MultiThread) {
793 lose_after_evict_ = true; 793 lose_after_evict_ = true;
794 RunTest(CompositorMode::THREADED, true); 794 RunTest(CompositorMode::THREADED);
795 } 795 }
796 796
797 TEST_F(LayerTreeHostContextTestLostContextAndEvictTextures, 797 TEST_F(LayerTreeHostContextTestLostContextAndEvictTextures,
798 LoseBeforeEvict_SingleThread_DelegatingRenderer) { 798 LoseBeforeEvict_SingleThread) {
799 lose_after_evict_ = false; 799 lose_after_evict_ = false;
800 RunTest(CompositorMode::SINGLE_THREADED, true); 800 RunTest(CompositorMode::SINGLE_THREADED);
801 } 801 }
802 802
803 TEST_F(LayerTreeHostContextTestLostContextAndEvictTextures, 803 TEST_F(LayerTreeHostContextTestLostContextAndEvictTextures,
804 LoseBeforeEvict_MultiThread_DelegatingRenderer) { 804 LoseBeforeEvict_MultiThread) {
805 lose_after_evict_ = false; 805 lose_after_evict_ = false;
806 RunTest(CompositorMode::THREADED, true); 806 RunTest(CompositorMode::THREADED);
807 } 807 }
808 808
809 class LayerTreeHostContextTestLayersNotified : public LayerTreeHostContextTest { 809 class LayerTreeHostContextTestLayersNotified : public LayerTreeHostContextTest {
810 public: 810 public:
811 LayerTreeHostContextTestLayersNotified() 811 LayerTreeHostContextTestLayersNotified()
812 : LayerTreeHostContextTest(), num_commits_(0) {} 812 : LayerTreeHostContextTest(), num_commits_(0) {}
813 813
814 void SetupTree() override { 814 void SetupTree() override {
815 root_ = FakePictureLayer::Create(&client_); 815 root_ = FakePictureLayer::Create(&client_);
816 child_ = FakePictureLayer::Create(&client_); 816 child_ = FakePictureLayer::Create(&client_);
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 void AfterTest() override {} 1578 void AfterTest() override {}
1579 1579
1580 bool deferred_; 1580 bool deferred_;
1581 }; 1581 };
1582 1582
1583 SINGLE_AND_MULTI_THREAD_TEST_F( 1583 SINGLE_AND_MULTI_THREAD_TEST_F(
1584 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame); 1584 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame);
1585 1585
1586 } // namespace 1586 } // namespace
1587 } // namespace cc 1587 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_copyrequest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698