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

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

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_pixeltest_masks.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/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/containers/hash_tables.h" 12 #include "base/containers/hash_tables.h"
13 #include "base/containers/scoped_ptr_hash_map.h" 13 #include "base/containers/scoped_ptr_hash_map.h"
14 #include "cc/animation/scrollbar_animation_controller_thinning.h" 14 #include "cc/animation/scrollbar_animation_controller_thinning.h"
15 #include "cc/base/latency_info_swap_promise.h"
16 #include "cc/base/math_util.h" 15 #include "cc/base/math_util.h"
17 #include "cc/input/page_scale_animation.h" 16 #include "cc/input/page_scale_animation.h"
18 #include "cc/input/top_controls_manager.h" 17 #include "cc/input/top_controls_manager.h"
19 #include "cc/layers/append_quads_data.h" 18 #include "cc/layers/append_quads_data.h"
20 #include "cc/layers/delegated_renderer_layer_impl.h" 19 #include "cc/layers/delegated_renderer_layer_impl.h"
21 #include "cc/layers/heads_up_display_layer_impl.h" 20 #include "cc/layers/heads_up_display_layer_impl.h"
22 #include "cc/layers/io_surface_layer_impl.h" 21 #include "cc/layers/io_surface_layer_impl.h"
23 #include "cc/layers/layer_impl.h" 22 #include "cc/layers/layer_impl.h"
24 #include "cc/layers/painted_scrollbar_layer_impl.h" 23 #include "cc/layers/painted_scrollbar_layer_impl.h"
25 #include "cc/layers/render_surface_impl.h" 24 #include "cc/layers/render_surface_impl.h"
26 #include "cc/layers/solid_color_layer_impl.h" 25 #include "cc/layers/solid_color_layer_impl.h"
27 #include "cc/layers/solid_color_scrollbar_layer_impl.h" 26 #include "cc/layers/solid_color_scrollbar_layer_impl.h"
28 #include "cc/layers/texture_layer_impl.h" 27 #include "cc/layers/texture_layer_impl.h"
29 #include "cc/layers/tiled_layer_impl.h" 28 #include "cc/layers/tiled_layer_impl.h"
30 #include "cc/output/begin_frame_args.h" 29 #include "cc/output/begin_frame_args.h"
31 #include "cc/output/compositor_frame_ack.h" 30 #include "cc/output/compositor_frame_ack.h"
32 #include "cc/output/compositor_frame_metadata.h" 31 #include "cc/output/compositor_frame_metadata.h"
33 #include "cc/output/copy_output_request.h" 32 #include "cc/output/copy_output_request.h"
34 #include "cc/output/copy_output_result.h" 33 #include "cc/output/copy_output_result.h"
35 #include "cc/output/gl_renderer.h" 34 #include "cc/output/gl_renderer.h"
35 #include "cc/output/latency_info_swap_promise.h"
36 #include "cc/quads/render_pass_draw_quad.h" 36 #include "cc/quads/render_pass_draw_quad.h"
37 #include "cc/quads/solid_color_draw_quad.h" 37 #include "cc/quads/solid_color_draw_quad.h"
38 #include "cc/quads/texture_draw_quad.h" 38 #include "cc/quads/texture_draw_quad.h"
39 #include "cc/quads/tile_draw_quad.h" 39 #include "cc/quads/tile_draw_quad.h"
40 #include "cc/resources/layer_tiling_data.h" 40 #include "cc/resources/layer_tiling_data.h"
41 #include "cc/test/animation_test_common.h" 41 #include "cc/test/animation_test_common.h"
42 #include "cc/test/begin_frame_args_test.h" 42 #include "cc/test/begin_frame_args_test.h"
43 #include "cc/test/fake_layer_tree_host_impl.h" 43 #include "cc/test/fake_layer_tree_host_impl.h"
44 #include "cc/test/fake_output_surface.h" 44 #include "cc/test/fake_output_surface.h"
45 #include "cc/test/fake_output_surface_client.h" 45 #include "cc/test/fake_output_surface_client.h"
(...skipping 8426 matching lines...) Expand 10 before | Expand all | Expand 10 after
8472 // surface. 8472 // surface.
8473 EXPECT_EQ(0, num_lost_surfaces_); 8473 EXPECT_EQ(0, num_lost_surfaces_);
8474 host_impl_->DidLoseOutputSurface(); 8474 host_impl_->DidLoseOutputSurface();
8475 EXPECT_EQ(1, num_lost_surfaces_); 8475 EXPECT_EQ(1, num_lost_surfaces_);
8476 host_impl_->DidLoseOutputSurface(); 8476 host_impl_->DidLoseOutputSurface();
8477 EXPECT_LE(1, num_lost_surfaces_); 8477 EXPECT_LE(1, num_lost_surfaces_);
8478 } 8478 }
8479 8479
8480 } // namespace 8480 } // namespace
8481 } // namespace cc 8481 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_pixeltest_masks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698