OLD | NEW |
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_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 #include "cc/test/render_pass_test_common.h" | 51 #include "cc/test/render_pass_test_common.h" |
52 #include "cc/test/test_gpu_memory_buffer_manager.h" | 52 #include "cc/test/test_gpu_memory_buffer_manager.h" |
53 #include "cc/test/test_shared_bitmap_manager.h" | 53 #include "cc/test/test_shared_bitmap_manager.h" |
54 #include "cc/test/test_web_graphics_context_3d.h" | 54 #include "cc/test/test_web_graphics_context_3d.h" |
55 #include "cc/trees/layer_tree_impl.h" | 55 #include "cc/trees/layer_tree_impl.h" |
56 #include "cc/trees/single_thread_proxy.h" | 56 #include "cc/trees/single_thread_proxy.h" |
57 #include "testing/gmock/include/gmock/gmock.h" | 57 #include "testing/gmock/include/gmock/gmock.h" |
58 #include "testing/gtest/include/gtest/gtest.h" | 58 #include "testing/gtest/include/gtest/gtest.h" |
59 #include "third_party/skia/include/core/SkMallocPixelRef.h" | 59 #include "third_party/skia/include/core/SkMallocPixelRef.h" |
60 #include "ui/gfx/frame_time.h" | 60 #include "ui/gfx/frame_time.h" |
61 #include "ui/gfx/rect_conversions.h" | 61 #include "ui/gfx/geometry/rect_conversions.h" |
62 #include "ui/gfx/size_conversions.h" | 62 #include "ui/gfx/geometry/size_conversions.h" |
63 #include "ui/gfx/vector2d_conversions.h" | 63 #include "ui/gfx/geometry/vector2d_conversions.h" |
64 | 64 |
65 using ::testing::Mock; | 65 using ::testing::Mock; |
66 using ::testing::Return; | 66 using ::testing::Return; |
67 using ::testing::AnyNumber; | 67 using ::testing::AnyNumber; |
68 using ::testing::AtLeast; | 68 using ::testing::AtLeast; |
69 using ::testing::_; | 69 using ::testing::_; |
70 | 70 |
71 namespace cc { | 71 namespace cc { |
72 namespace { | 72 namespace { |
73 | 73 |
(...skipping 7437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7511 // surface. | 7511 // surface. |
7512 EXPECT_EQ(0, num_lost_surfaces_); | 7512 EXPECT_EQ(0, num_lost_surfaces_); |
7513 host_impl_->DidLoseOutputSurface(); | 7513 host_impl_->DidLoseOutputSurface(); |
7514 EXPECT_EQ(1, num_lost_surfaces_); | 7514 EXPECT_EQ(1, num_lost_surfaces_); |
7515 host_impl_->DidLoseOutputSurface(); | 7515 host_impl_->DidLoseOutputSurface(); |
7516 EXPECT_LE(1, num_lost_surfaces_); | 7516 EXPECT_LE(1, num_lost_surfaces_); |
7517 } | 7517 } |
7518 | 7518 |
7519 } // namespace | 7519 } // namespace |
7520 } // namespace cc | 7520 } // namespace cc |
OLD | NEW |