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

Side by Side Diff: cc/layer_tree_host_unittest.cc

Issue 11615020: Clean up cc and webkit/compositor_bindings include path shenanigans (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/occlusion_tracker_unittest.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 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/layer_tree_host.h" 5 #include "cc/layer_tree_host.h"
6 6
7 #include "base/synchronization/lock.h" 7 #include "base/synchronization/lock.h"
8 #include "cc/content_layer.h" 8 #include "cc/content_layer.h"
9 #include "cc/content_layer_client.h" 9 #include "cc/content_layer_client.h"
10 #include "cc/layer_impl.h" 10 #include "cc/layer_impl.h"
11 #include "cc/layer_tree_host_impl.h" 11 #include "cc/layer_tree_host_impl.h"
12 #include "cc/layer_tree_impl.h" 12 #include "cc/layer_tree_impl.h"
13 #include "cc/output_surface.h" 13 #include "cc/output_surface.h"
14 #include "cc/single_thread_proxy.h" 14 #include "cc/single_thread_proxy.h"
15 #include "cc/test/fake_content_layer_client.h" 15 #include "cc/test/fake_content_layer_client.h"
16 #include "cc/test/fake_layer_tree_host_client.h" 16 #include "cc/test/fake_layer_tree_host_client.h"
17 #include "cc/test/fake_output_surface.h" 17 #include "cc/test/fake_output_surface.h"
18 #include "cc/test/fake_proxy.h" 18 #include "cc/test/fake_proxy.h"
19 #include "cc/test/geometry_test_utils.h" 19 #include "cc/test/geometry_test_utils.h"
20 #include "cc/test/layer_tree_test_common.h" 20 #include "cc/test/layer_tree_test_common.h"
21 #include "cc/resource_update_queue.h"
21 #include "cc/test/occlusion_tracker_test_common.h" 22 #include "cc/test/occlusion_tracker_test_common.h"
22 #include "cc/resource_update_queue.h"
23 #include "cc/timing_function.h" 23 #include "cc/timing_function.h"
24 #include "testing/gmock/include/gmock/gmock.h" 24 #include "testing/gmock/include/gmock/gmock.h"
25 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerScrollClien t.h"
26 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h"
25 #include "third_party/khronos/GLES2/gl2.h" 27 #include "third_party/khronos/GLES2/gl2.h"
26 #include "third_party/khronos/GLES2/gl2ext.h" 28 #include "third_party/khronos/GLES2/gl2ext.h"
27 #include "ui/gfx/point_conversions.h" 29 #include "ui/gfx/point_conversions.h"
28 #include "ui/gfx/size_conversions.h" 30 #include "ui/gfx/size_conversions.h"
29 #include "ui/gfx/vector2d_conversions.h" 31 #include "ui/gfx/vector2d_conversions.h"
30 #include <public/WebLayerScrollClient.h>
31 #include <public/WebSize.h>
32 32
33 namespace cc { 33 namespace cc {
34 namespace { 34 namespace {
35 35
36 class LayerTreeHostTest : public ThreadedTest { }; 36 class LayerTreeHostTest : public ThreadedTest { };
37 37
38 // Shortlived layerTreeHosts shouldn't die. 38 // Shortlived layerTreeHosts shouldn't die.
39 class LayerTreeHostTestShortlived1 : public LayerTreeHostTest { 39 class LayerTreeHostTestShortlived1 : public LayerTreeHostTest {
40 public: 40 public:
41 LayerTreeHostTestShortlived1() { } 41 LayerTreeHostTestShortlived1() { }
(...skipping 3371 matching lines...) Expand 10 before | Expand all | Expand 10 after
3413 LayerTreeSettings settings; 3413 LayerTreeSettings settings;
3414 settings.maxPartialTextureUpdates = 4; 3414 settings.maxPartialTextureUpdates = 4;
3415 3415
3416 scoped_ptr<LayerTreeHost> host = LayerTreeHost::create(&client, settings, sc oped_ptr<Thread>()); 3416 scoped_ptr<LayerTreeHost> host = LayerTreeHost::create(&client, settings, sc oped_ptr<Thread>());
3417 EXPECT_TRUE(host->initializeRendererIfNeeded()); 3417 EXPECT_TRUE(host->initializeRendererIfNeeded());
3418 EXPECT_EQ(0u, host->settings().maxPartialTextureUpdates); 3418 EXPECT_EQ(0u, host->settings().maxPartialTextureUpdates);
3419 } 3419 }
3420 3420
3421 } // namespace 3421 } // namespace
3422 } // namespace cc 3422 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/occlusion_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698