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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <cmath> | 10 #include <cmath> |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(frame.get())); | 177 EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(frame.get())); |
178 last_on_draw_render_passes_.clear(); | 178 last_on_draw_render_passes_.clear(); |
179 RenderPass::CopyAll(frame->render_passes, &last_on_draw_render_passes_); | 179 RenderPass::CopyAll(frame->render_passes, &last_on_draw_render_passes_); |
180 host_impl_->DrawLayers(frame.get()); | 180 host_impl_->DrawLayers(frame.get()); |
181 host_impl_->DidDrawAllLayers(*frame); | 181 host_impl_->DidDrawAllLayers(*frame); |
182 last_on_draw_frame_ = std::move(frame); | 182 last_on_draw_frame_ = std::move(frame); |
183 } | 183 } |
184 void NeedsImplSideInvalidation() override { | 184 void NeedsImplSideInvalidation() override { |
185 did_request_impl_side_invalidation_ = true; | 185 did_request_impl_side_invalidation_ = true; |
186 } | 186 } |
| 187 void NotifyImageDecodeRequestFinished() override {} |
187 | 188 |
188 void set_reduce_memory_result(bool reduce_memory_result) { | 189 void set_reduce_memory_result(bool reduce_memory_result) { |
189 reduce_memory_result_ = reduce_memory_result; | 190 reduce_memory_result_ = reduce_memory_result; |
190 } | 191 } |
191 | 192 |
192 virtual bool CreateHostImpl( | 193 virtual bool CreateHostImpl( |
193 const LayerTreeSettings& settings, | 194 const LayerTreeSettings& settings, |
194 std::unique_ptr<CompositorFrameSink> compositor_frame_sink) { | 195 std::unique_ptr<CompositorFrameSink> compositor_frame_sink) { |
195 return CreateHostImplWithTaskRunnerProvider( | 196 return CreateHostImplWithTaskRunnerProvider( |
196 settings, std::move(compositor_frame_sink), &task_runner_provider_); | 197 settings, std::move(compositor_frame_sink), &task_runner_provider_); |
(...skipping 11867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12064 else | 12065 else |
12065 EXPECT_FALSE(tile->HasRasterTask()); | 12066 EXPECT_FALSE(tile->HasRasterTask()); |
12066 } | 12067 } |
12067 Region expected_invalidation( | 12068 Region expected_invalidation( |
12068 raster_source->GetRectForImage(checkerable_image->uniqueID())); | 12069 raster_source->GetRectForImage(checkerable_image->uniqueID())); |
12069 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); | 12070 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); |
12070 } | 12071 } |
12071 | 12072 |
12072 } // namespace | 12073 } // namespace |
12073 } // namespace cc | 12074 } // namespace cc |
OLD | NEW |