OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/layers/layer_impl.h" | 5 #include "cc/layers/layer_impl.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "base/debug/trace_event_argument.h" | 8 #include "base/debug/trace_event_argument.h" |
9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 continue; | 230 continue; |
231 | 231 |
232 gfx::Rect request_in_layer_space = request->area(); | 232 gfx::Rect request_in_layer_space = request->area(); |
233 gfx::Rect request_in_content_space = | 233 gfx::Rect request_in_content_space = |
234 LayerRectToContentRect(request_in_layer_space); | 234 LayerRectToContentRect(request_in_layer_space); |
235 request->set_area(MathUtil::MapEnclosingClippedRect( | 235 request->set_area(MathUtil::MapEnclosingClippedRect( |
236 draw_properties_.target_space_transform, request_in_content_space)); | 236 draw_properties_.target_space_transform, request_in_content_space)); |
237 } | 237 } |
238 | 238 |
239 layer_tree_impl()->RemoveLayerWithCopyOutputRequest(this); | 239 layer_tree_impl()->RemoveLayerWithCopyOutputRequest(this); |
| 240 layer_tree_impl()->set_needs_update_draw_properties(); |
240 } | 241 } |
241 | 242 |
242 void LayerImpl::ClearRenderSurfaceLayerList() { | 243 void LayerImpl::ClearRenderSurfaceLayerList() { |
243 if (render_surface_) | 244 if (render_surface_) |
244 render_surface_->ClearLayerLists(); | 245 render_surface_->ClearLayerLists(); |
245 } | 246 } |
246 | 247 |
247 void LayerImpl::PopulateSharedQuadState(SharedQuadState* state) const { | 248 void LayerImpl::PopulateSharedQuadState(SharedQuadState* state) const { |
248 state->SetAll( | 249 state->SetAll( |
249 draw_properties_.target_space_transform, draw_properties_.content_bounds, | 250 draw_properties_.target_space_transform, draw_properties_.content_bounds, |
(...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1608 SetNeedsPushProperties(); | 1609 SetNeedsPushProperties(); |
1609 layer_tree_impl()->set_needs_update_draw_properties(); | 1610 layer_tree_impl()->set_needs_update_draw_properties(); |
1610 if (should_have_render_surface) { | 1611 if (should_have_render_surface) { |
1611 render_surface_ = make_scoped_ptr(new RenderSurfaceImpl(this)); | 1612 render_surface_ = make_scoped_ptr(new RenderSurfaceImpl(this)); |
1612 return; | 1613 return; |
1613 } | 1614 } |
1614 render_surface_.reset(); | 1615 render_surface_.reset(); |
1615 } | 1616 } |
1616 | 1617 |
1617 } // namespace cc | 1618 } // namespace cc |
OLD | NEW |