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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(frame.get())); | 183 EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(frame.get())); |
184 last_on_draw_render_passes_.clear(); | 184 last_on_draw_render_passes_.clear(); |
185 RenderPass::CopyAll(frame->render_passes, &last_on_draw_render_passes_); | 185 RenderPass::CopyAll(frame->render_passes, &last_on_draw_render_passes_); |
186 host_impl_->DrawLayers(frame.get()); | 186 host_impl_->DrawLayers(frame.get()); |
187 host_impl_->DidDrawAllLayers(*frame); | 187 host_impl_->DidDrawAllLayers(*frame); |
188 last_on_draw_frame_ = std::move(frame); | 188 last_on_draw_frame_ = std::move(frame); |
189 } | 189 } |
190 void NeedsImplSideInvalidation() override { | 190 void NeedsImplSideInvalidation() override { |
191 did_request_impl_side_invalidation_ = true; | 191 did_request_impl_side_invalidation_ = true; |
192 } | 192 } |
| 193 void NotifyImageDecodeRequestFinished() override {} |
193 | 194 |
194 void set_reduce_memory_result(bool reduce_memory_result) { | 195 void set_reduce_memory_result(bool reduce_memory_result) { |
195 reduce_memory_result_ = reduce_memory_result; | 196 reduce_memory_result_ = reduce_memory_result; |
196 } | 197 } |
197 | 198 |
198 virtual bool CreateHostImpl( | 199 virtual bool CreateHostImpl( |
199 const LayerTreeSettings& settings, | 200 const LayerTreeSettings& settings, |
200 std::unique_ptr<CompositorFrameSink> compositor_frame_sink) { | 201 std::unique_ptr<CompositorFrameSink> compositor_frame_sink) { |
201 return CreateHostImplWithTaskRunnerProvider( | 202 return CreateHostImplWithTaskRunnerProvider( |
202 settings, std::move(compositor_frame_sink), &task_runner_provider_); | 203 settings, std::move(compositor_frame_sink), &task_runner_provider_); |
(...skipping 12095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12298 else | 12299 else |
12299 EXPECT_FALSE(tile->HasRasterTask()); | 12300 EXPECT_FALSE(tile->HasRasterTask()); |
12300 } | 12301 } |
12301 Region expected_invalidation( | 12302 Region expected_invalidation( |
12302 raster_source->GetRectForImage(checkerable_image->uniqueID())); | 12303 raster_source->GetRectForImage(checkerable_image->uniqueID())); |
12303 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); | 12304 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); |
12304 } | 12305 } |
12305 | 12306 |
12306 } // namespace | 12307 } // namespace |
12307 } // namespace cc | 12308 } // namespace cc |
OLD | NEW |