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.h" | 5 #include "cc/trees/layer_tree_host.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 4782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4793 LayerTreeHostImpl* layer_tree_host_impl, | 4793 LayerTreeHostImpl* layer_tree_host_impl, |
4794 int* set_needs_commit_count, | 4794 int* set_needs_commit_count, |
4795 int* set_needs_redraw_count) | 4795 int* set_needs_redraw_count) |
4796 : SwapPromiseMonitor(layer_tree_host, layer_tree_host_impl), | 4796 : SwapPromiseMonitor(layer_tree_host, layer_tree_host_impl), |
4797 set_needs_commit_count_(set_needs_commit_count) {} | 4797 set_needs_commit_count_(set_needs_commit_count) {} |
4798 | 4798 |
4799 ~SimpleSwapPromiseMonitor() override {} | 4799 ~SimpleSwapPromiseMonitor() override {} |
4800 | 4800 |
4801 void OnSetNeedsCommitOnMain() override { (*set_needs_commit_count_)++; } | 4801 void OnSetNeedsCommitOnMain() override { (*set_needs_commit_count_)++; } |
4802 | 4802 |
| 4803 void OnSetNeedsForcedRedrawOnMain() override {} |
| 4804 |
4803 void OnSetNeedsRedrawOnImpl() override { | 4805 void OnSetNeedsRedrawOnImpl() override { |
4804 ADD_FAILURE() << "Should not get called on main thread."; | 4806 ADD_FAILURE() << "Should not get called on main thread."; |
4805 } | 4807 } |
4806 | 4808 |
4807 void OnForwardScrollUpdateToMainThreadOnImpl() override { | 4809 void OnForwardScrollUpdateToMainThreadOnImpl() override { |
4808 ADD_FAILURE() << "Should not get called on main thread."; | 4810 ADD_FAILURE() << "Should not get called on main thread."; |
4809 } | 4811 } |
4810 | 4812 |
4811 private: | 4813 private: |
4812 int* set_needs_commit_count_; | 4814 int* set_needs_commit_count_; |
(...skipping 2079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6892 private: | 6894 private: |
6893 FakeContentLayerClient client_; | 6895 FakeContentLayerClient client_; |
6894 const gfx::Size viewport_size_; | 6896 const gfx::Size viewport_size_; |
6895 const gfx::Size large_image_size_; | 6897 const gfx::Size large_image_size_; |
6896 }; | 6898 }; |
6897 | 6899 |
6898 SINGLE_AND_MULTI_THREAD_TEST_F(GpuRasterizationSucceedsWithLargeImage); | 6900 SINGLE_AND_MULTI_THREAD_TEST_F(GpuRasterizationSucceedsWithLargeImage); |
6899 | 6901 |
6900 } // namespace | 6902 } // namespace |
6901 } // namespace cc | 6903 } // namespace cc |
OLD | NEW |