| 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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 } | 328 } |
| 329 | 329 |
| 330 RenderPassId LayerImpl::FirstContributingRenderPassId() const { | 330 RenderPassId LayerImpl::FirstContributingRenderPassId() const { |
| 331 return RenderPassId(0, 0); | 331 return RenderPassId(0, 0); |
| 332 } | 332 } |
| 333 | 333 |
| 334 RenderPassId LayerImpl::NextContributingRenderPassId(RenderPassId id) const { | 334 RenderPassId LayerImpl::NextContributingRenderPassId(RenderPassId id) const { |
| 335 return RenderPassId(0, 0); | 335 return RenderPassId(0, 0); |
| 336 } | 336 } |
| 337 | 337 |
| 338 bool LayerImpl::UpdateTiles(const Occlusion& occlusion_in_layer_space, |
| 339 bool resourceless_software_draw) { |
| 340 return false; |
| 341 } |
| 342 |
| 338 void LayerImpl::GetContentsResourceId(ResourceProvider::ResourceId* resource_id, | 343 void LayerImpl::GetContentsResourceId(ResourceProvider::ResourceId* resource_id, |
| 339 gfx::Size* resource_size) const { | 344 gfx::Size* resource_size) const { |
| 340 NOTREACHED(); | 345 NOTREACHED(); |
| 341 *resource_id = 0; | 346 *resource_id = 0; |
| 342 } | 347 } |
| 343 | 348 |
| 344 void LayerImpl::SetSentScrollDelta(const gfx::Vector2dF& sent_scroll_delta) { | 349 void LayerImpl::SetSentScrollDelta(const gfx::Vector2dF& sent_scroll_delta) { |
| 345 // Pending tree never has sent scroll deltas | 350 // Pending tree never has sent scroll deltas |
| 346 DCHECK(layer_tree_impl()->IsActiveTree()); | 351 DCHECK(layer_tree_impl()->IsActiveTree()); |
| 347 | 352 |
| (...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1590 SetNeedsPushProperties(); | 1595 SetNeedsPushProperties(); |
| 1591 layer_tree_impl()->set_needs_update_draw_properties(); | 1596 layer_tree_impl()->set_needs_update_draw_properties(); |
| 1592 if (should_have_render_surface) { | 1597 if (should_have_render_surface) { |
| 1593 render_surface_ = make_scoped_ptr(new RenderSurfaceImpl(this)); | 1598 render_surface_ = make_scoped_ptr(new RenderSurfaceImpl(this)); |
| 1594 return; | 1599 return; |
| 1595 } | 1600 } |
| 1596 render_surface_.reset(); | 1601 render_surface_.reset(); |
| 1597 } | 1602 } |
| 1598 | 1603 |
| 1599 } // namespace cc | 1604 } // namespace cc |
| OLD | NEW |