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

Side by Side Diff: cc/layers/delegated_renderer_layer_impl_unittest.cc

Issue 1001833005: Update from https://crrev.com/320343 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Supress Created 5 years, 9 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/input/top_controls_manager_unittest.cc ('k') | cc/layers/draw_properties.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 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 "cc/layers/delegated_renderer_layer_impl.h" 5 #include "cc/layers/delegated_renderer_layer_impl.h"
6 6
7 #include "cc/base/scoped_ptr_vector.h" 7 #include "cc/base/scoped_ptr_vector.h"
8 #include "cc/layers/solid_color_layer_impl.h" 8 #include "cc/layers/solid_color_layer_impl.h"
9 #include "cc/quads/render_pass_draw_quad.h" 9 #include "cc/quads/render_pass_draw_quad.h"
10 #include "cc/quads/solid_color_draw_quad.h" 10 #include "cc/quads/solid_color_draw_quad.h"
11 #include "cc/test/fake_delegated_renderer_layer_impl.h" 11 #include "cc/test/fake_delegated_renderer_layer_impl.h"
12 #include "cc/test/fake_impl_proxy.h"
12 #include "cc/test/fake_layer_tree_host_impl.h" 13 #include "cc/test/fake_layer_tree_host_impl.h"
13 #include "cc/test/fake_layer_tree_host_impl_client.h" 14 #include "cc/test/fake_layer_tree_host_impl_client.h"
14 #include "cc/test/fake_output_surface.h" 15 #include "cc/test/fake_output_surface.h"
15 #include "cc/test/fake_proxy.h"
16 #include "cc/test/geometry_test_utils.h" 16 #include "cc/test/geometry_test_utils.h"
17 #include "cc/test/layer_test_common.h" 17 #include "cc/test/layer_test_common.h"
18 #include "cc/test/render_pass_test_common.h" 18 #include "cc/test/render_pass_test_common.h"
19 #include "cc/test/render_pass_test_utils.h" 19 #include "cc/test/render_pass_test_utils.h"
20 #include "cc/test/test_shared_bitmap_manager.h" 20 #include "cc/test/test_shared_bitmap_manager.h"
21 #include "cc/test/test_web_graphics_context_3d.h" 21 #include "cc/test/test_web_graphics_context_3d.h"
22 #include "cc/trees/layer_tree_host_impl.h" 22 #include "cc/trees/layer_tree_host_impl.h"
23 #include "cc/trees/layer_tree_impl.h" 23 #include "cc/trees/layer_tree_impl.h"
24 #include "cc/trees/single_thread_proxy.h" 24 #include "cc/trees/single_thread_proxy.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 11 matching lines...) Expand all
37 LayerTreeSettings settings; 37 LayerTreeSettings settings;
38 settings.minimum_occlusion_tracking_size = gfx::Size(); 38 settings.minimum_occlusion_tracking_size = gfx::Size();
39 39
40 host_impl_.reset( 40 host_impl_.reset(
41 new FakeLayerTreeHostImpl(settings, &proxy_, &shared_bitmap_manager_)); 41 new FakeLayerTreeHostImpl(settings, &proxy_, &shared_bitmap_manager_));
42 host_impl_->InitializeRenderer(FakeOutputSurface::Create3d()); 42 host_impl_->InitializeRenderer(FakeOutputSurface::Create3d());
43 host_impl_->SetViewportSize(gfx::Size(10, 10)); 43 host_impl_->SetViewportSize(gfx::Size(10, 10));
44 } 44 }
45 45
46 protected: 46 protected:
47 FakeProxy proxy_; 47 FakeImplProxy proxy_;
48 DebugScopedSetImplThreadAndMainThreadBlocked 48 DebugScopedSetImplThreadAndMainThreadBlocked
49 always_impl_thread_and_main_thread_blocked_; 49 always_impl_thread_and_main_thread_blocked_;
50 TestSharedBitmapManager shared_bitmap_manager_; 50 TestSharedBitmapManager shared_bitmap_manager_;
51 scoped_ptr<LayerTreeHostImpl> host_impl_; 51 scoped_ptr<LayerTreeHostImpl> host_impl_;
52 }; 52 };
53 53
54 class DelegatedRendererLayerImplTestSimple 54 class DelegatedRendererLayerImplTestSimple
55 : public DelegatedRendererLayerImplTest { 55 : public DelegatedRendererLayerImplTest {
56 public: 56 public:
57 DelegatedRendererLayerImplTestSimple() 57 DelegatedRendererLayerImplTestSimple()
(...skipping 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 scoped_ptr<DelegatedRendererLayerImpl> other_layer = 1677 scoped_ptr<DelegatedRendererLayerImpl> other_layer =
1678 DelegatedRendererLayerImpl::Create(host_impl_->active_tree(), 6); 1678 DelegatedRendererLayerImpl::Create(host_impl_->active_tree(), 6);
1679 1679
1680 delegated_renderer_layer_impl->PushPropertiesTo(other_layer.get()); 1680 delegated_renderer_layer_impl->PushPropertiesTo(other_layer.get());
1681 1681
1682 EXPECT_EQ(0.5f, other_layer->inverse_device_scale_factor()); 1682 EXPECT_EQ(0.5f, other_layer->inverse_device_scale_factor());
1683 } 1683 }
1684 1684
1685 } // namespace 1685 } // namespace
1686 } // namespace cc 1686 } // namespace cc
OLDNEW
« no previous file with comments | « cc/input/top_controls_manager_unittest.cc ('k') | cc/layers/draw_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698