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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(frame.get())); | 176 EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(frame.get())); |
177 last_on_draw_render_passes_.clear(); | 177 last_on_draw_render_passes_.clear(); |
178 RenderPass::CopyAll(frame->render_passes, &last_on_draw_render_passes_); | 178 RenderPass::CopyAll(frame->render_passes, &last_on_draw_render_passes_); |
179 host_impl_->DrawLayers(frame.get()); | 179 host_impl_->DrawLayers(frame.get()); |
180 host_impl_->DidDrawAllLayers(*frame); | 180 host_impl_->DidDrawAllLayers(*frame); |
181 last_on_draw_frame_ = std::move(frame); | 181 last_on_draw_frame_ = std::move(frame); |
182 } | 182 } |
183 void NeedsImplSideInvalidation() override { | 183 void NeedsImplSideInvalidation() override { |
184 did_request_impl_side_invalidation_ = true; | 184 did_request_impl_side_invalidation_ = true; |
185 } | 185 } |
| 186 void NotifyImageDecodeRequestFinished() override {} |
186 | 187 |
187 void set_reduce_memory_result(bool reduce_memory_result) { | 188 void set_reduce_memory_result(bool reduce_memory_result) { |
188 reduce_memory_result_ = reduce_memory_result; | 189 reduce_memory_result_ = reduce_memory_result; |
189 } | 190 } |
190 | 191 |
191 virtual bool CreateHostImpl( | 192 virtual bool CreateHostImpl( |
192 const LayerTreeSettings& settings, | 193 const LayerTreeSettings& settings, |
193 std::unique_ptr<CompositorFrameSink> compositor_frame_sink) { | 194 std::unique_ptr<CompositorFrameSink> compositor_frame_sink) { |
194 return CreateHostImplWithTaskRunnerProvider( | 195 return CreateHostImplWithTaskRunnerProvider( |
195 settings, std::move(compositor_frame_sink), &task_runner_provider_); | 196 settings, std::move(compositor_frame_sink), &task_runner_provider_); |
(...skipping 11960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12156 else | 12157 else |
12157 EXPECT_FALSE(tile->HasRasterTask()); | 12158 EXPECT_FALSE(tile->HasRasterTask()); |
12158 } | 12159 } |
12159 Region expected_invalidation( | 12160 Region expected_invalidation( |
12160 raster_source->GetRectForImage(checkerable_image->uniqueID())); | 12161 raster_source->GetRectForImage(checkerable_image->uniqueID())); |
12161 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); | 12162 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); |
12162 } | 12163 } |
12163 | 12164 |
12164 } // namespace | 12165 } // namespace |
12165 } // namespace cc | 12166 } // namespace cc |
OLD | NEW |