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 5679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5690 output_surface->set_forced_draw_to_software_device(true); | 5690 output_surface->set_forced_draw_to_software_device(true); |
5691 EXPECT_TRUE(output_surface->ForcedDrawToSoftwareDevice()); | 5691 EXPECT_TRUE(output_surface->ForcedDrawToSoftwareDevice()); |
5692 | 5692 |
5693 EXPECT_EQ(0, software_device->frames_began_); | 5693 EXPECT_EQ(0, software_device->frames_began_); |
5694 EXPECT_EQ(0, software_device->frames_ended_); | 5694 EXPECT_EQ(0, software_device->frames_ended_); |
5695 | 5695 |
5696 DrawFrame(); | 5696 DrawFrame(); |
5697 | 5697 |
5698 EXPECT_EQ(1, software_device->frames_began_); | 5698 EXPECT_EQ(1, software_device->frames_began_); |
5699 EXPECT_EQ(1, software_device->frames_ended_); | 5699 EXPECT_EQ(1, software_device->frames_ended_); |
| 5700 |
| 5701 // Call other API methods that are likely to hit NULL pointer in this mode. |
| 5702 EXPECT_TRUE(host_impl_->AsValue()); |
| 5703 EXPECT_TRUE(host_impl_->ActivationStateAsValue()); |
5700 } | 5704 } |
5701 | 5705 |
5702 } // namespace | 5706 } // namespace |
5703 } // namespace cc | 5707 } // namespace cc |
OLD | NEW |