| 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/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
| 10 #include "base/trace_event/trace_event_argument.h" | 10 #include "base/trace_event/trace_event_argument.h" |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 } | 354 } |
| 355 | 355 |
| 356 RenderPassId LayerImpl::FirstContributingRenderPassId() const { | 356 RenderPassId LayerImpl::FirstContributingRenderPassId() const { |
| 357 return RenderPassId(0, 0); | 357 return RenderPassId(0, 0); |
| 358 } | 358 } |
| 359 | 359 |
| 360 RenderPassId LayerImpl::NextContributingRenderPassId(RenderPassId id) const { | 360 RenderPassId LayerImpl::NextContributingRenderPassId(RenderPassId id) const { |
| 361 return RenderPassId(0, 0); | 361 return RenderPassId(0, 0); |
| 362 } | 362 } |
| 363 | 363 |
| 364 bool LayerImpl::UpdateTiles(const Occlusion& occlusion_in_layer_space, | |
| 365 bool resourceless_software_draw) { | |
| 366 return false; | |
| 367 } | |
| 368 | |
| 369 void LayerImpl::GetContentsResourceId(ResourceProvider::ResourceId* resource_id, | 364 void LayerImpl::GetContentsResourceId(ResourceProvider::ResourceId* resource_id, |
| 370 gfx::Size* resource_size) const { | 365 gfx::Size* resource_size) const { |
| 371 NOTREACHED(); | 366 NOTREACHED(); |
| 372 *resource_id = 0; | 367 *resource_id = 0; |
| 373 } | 368 } |
| 374 | 369 |
| 375 gfx::Vector2dF LayerImpl::ScrollBy(const gfx::Vector2dF& scroll) { | 370 gfx::Vector2dF LayerImpl::ScrollBy(const gfx::Vector2dF& scroll) { |
| 376 RefreshFromScrollDelegate(); | 371 RefreshFromScrollDelegate(); |
| 377 | 372 |
| 378 gfx::ScrollOffset adjusted_scroll(scroll); | 373 gfx::ScrollOffset adjusted_scroll(scroll); |
| (...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1572 SetNeedsPushProperties(); | 1567 SetNeedsPushProperties(); |
| 1573 layer_tree_impl()->set_needs_update_draw_properties(); | 1568 layer_tree_impl()->set_needs_update_draw_properties(); |
| 1574 if (should_have_render_surface) { | 1569 if (should_have_render_surface) { |
| 1575 render_surface_ = make_scoped_ptr(new RenderSurfaceImpl(this)); | 1570 render_surface_ = make_scoped_ptr(new RenderSurfaceImpl(this)); |
| 1576 return; | 1571 return; |
| 1577 } | 1572 } |
| 1578 render_surface_.reset(); | 1573 render_surface_.reset(); |
| 1579 } | 1574 } |
| 1580 | 1575 |
| 1581 } // namespace cc | 1576 } // namespace cc |
| OLD | NEW |