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

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

Issue 308193003: Removed QuadSink and MockQuadCuller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@plumLayerImpl
Patch Set: rm unused line Created 6 years, 6 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/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 }; 1655 };
1656 1656
1657 class EvictionTestLayerImpl : public LayerImpl { 1657 class EvictionTestLayerImpl : public LayerImpl {
1658 public: 1658 public:
1659 static scoped_ptr<EvictionTestLayerImpl> Create(LayerTreeImpl* tree_impl, 1659 static scoped_ptr<EvictionTestLayerImpl> Create(LayerTreeImpl* tree_impl,
1660 int id) { 1660 int id) {
1661 return make_scoped_ptr(new EvictionTestLayerImpl(tree_impl, id)); 1661 return make_scoped_ptr(new EvictionTestLayerImpl(tree_impl, id));
1662 } 1662 }
1663 virtual ~EvictionTestLayerImpl() {} 1663 virtual ~EvictionTestLayerImpl() {}
1664 1664
1665 virtual void AppendQuads(QuadSink* quad_sink, 1665 virtual void AppendQuads(RenderPass* render_pass,
1666 const OcclusionTracker<LayerImpl>& occlusion_tracker,
1666 AppendQuadsData* append_quads_data) OVERRIDE { 1667 AppendQuadsData* append_quads_data) OVERRIDE {
1667 ASSERT_TRUE(has_texture_); 1668 ASSERT_TRUE(has_texture_);
1668 ASSERT_NE(0u, layer_tree_impl()->resource_provider()->num_resources()); 1669 ASSERT_NE(0u, layer_tree_impl()->resource_provider()->num_resources());
1669 } 1670 }
1670 1671
1671 void SetHasTexture(bool has_texture) { has_texture_ = has_texture; } 1672 void SetHasTexture(bool has_texture) { has_texture_ = has_texture; }
1672 1673
1673 private: 1674 private:
1674 EvictionTestLayerImpl(LayerTreeImpl* tree_impl, int id) 1675 EvictionTestLayerImpl(LayerTreeImpl* tree_impl, int id)
1675 : LayerImpl(tree_impl, id), has_texture_(false) {} 1676 : LayerImpl(tree_impl, id), has_texture_(false) {}
(...skipping 3223 matching lines...) Expand 10 before | Expand all | Expand 10 after
4899 const gfx::Size bounds_; 4900 const gfx::Size bounds_;
4900 FakeContentLayerClient client_; 4901 FakeContentLayerClient client_;
4901 scoped_refptr<ContentLayerWithUpdateTracking> content_layer_; 4902 scoped_refptr<ContentLayerWithUpdateTracking> content_layer_;
4902 scoped_refptr<FakePictureLayer> picture_layer_; 4903 scoped_refptr<FakePictureLayer> picture_layer_;
4903 Layer* child_layer_; 4904 Layer* child_layer_;
4904 }; 4905 };
4905 4906
4906 MULTI_THREAD_TEST_F(LayerTreeHostTestContinuousPainting); 4907 MULTI_THREAD_TEST_F(LayerTreeHostTestContinuousPainting);
4907 4908
4908 } // namespace cc 4909 } // namespace cc
OLDNEW
« cc/test/mock_occlusion_tracker.h ('K') | « cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698