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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(frame.get())); | 184 EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(frame.get())); |
185 last_on_draw_render_passes_.clear(); | 185 last_on_draw_render_passes_.clear(); |
186 RenderPass::CopyAll(frame->render_passes, &last_on_draw_render_passes_); | 186 RenderPass::CopyAll(frame->render_passes, &last_on_draw_render_passes_); |
187 host_impl_->DrawLayers(frame.get()); | 187 host_impl_->DrawLayers(frame.get()); |
188 host_impl_->DidDrawAllLayers(*frame); | 188 host_impl_->DidDrawAllLayers(*frame); |
189 last_on_draw_frame_ = std::move(frame); | 189 last_on_draw_frame_ = std::move(frame); |
190 } | 190 } |
191 void NeedsImplSideInvalidation() override { | 191 void NeedsImplSideInvalidation() override { |
192 did_request_impl_side_invalidation_ = true; | 192 did_request_impl_side_invalidation_ = true; |
193 } | 193 } |
| 194 void NotifyImageDecodeRequestFinished() override {} |
194 | 195 |
195 void set_reduce_memory_result(bool reduce_memory_result) { | 196 void set_reduce_memory_result(bool reduce_memory_result) { |
196 reduce_memory_result_ = reduce_memory_result; | 197 reduce_memory_result_ = reduce_memory_result; |
197 } | 198 } |
198 | 199 |
199 virtual bool CreateHostImpl( | 200 virtual bool CreateHostImpl( |
200 const LayerTreeSettings& settings, | 201 const LayerTreeSettings& settings, |
201 std::unique_ptr<CompositorFrameSink> compositor_frame_sink) { | 202 std::unique_ptr<CompositorFrameSink> compositor_frame_sink) { |
202 return CreateHostImplWithTaskRunnerProvider( | 203 return CreateHostImplWithTaskRunnerProvider( |
203 settings, std::move(compositor_frame_sink), &task_runner_provider_); | 204 settings, std::move(compositor_frame_sink), &task_runner_provider_); |
(...skipping 12166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12370 else | 12371 else |
12371 EXPECT_FALSE(tile->HasRasterTask()); | 12372 EXPECT_FALSE(tile->HasRasterTask()); |
12372 } | 12373 } |
12373 Region expected_invalidation( | 12374 Region expected_invalidation( |
12374 raster_source->GetRectForImage(checkerable_image->uniqueID())); | 12375 raster_source->GetRectForImage(checkerable_image->uniqueID())); |
12375 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); | 12376 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); |
12376 } | 12377 } |
12377 | 12378 |
12378 } // namespace | 12379 } // namespace |
12379 } // namespace cc | 12380 } // namespace cc |
OLD | NEW |