Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: cc/layers/layer_impl.cc

Issue 404563005: Make RenderPass::Id an isolated class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more case in mojo Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/render_surface_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "cc/animation/animation_registrar.h" 11 #include "cc/animation/animation_registrar.h"
12 #include "cc/animation/scrollbar_animation_controller.h" 12 #include "cc/animation/scrollbar_animation_controller.h"
13 #include "cc/base/math_util.h" 13 #include "cc/base/math_util.h"
14 #include "cc/debug/debug_colors.h" 14 #include "cc/debug/debug_colors.h"
15 #include "cc/debug/layer_tree_debug_state.h" 15 #include "cc/debug/layer_tree_debug_state.h"
16 #include "cc/debug/micro_benchmark_impl.h" 16 #include "cc/debug/micro_benchmark_impl.h"
17 #include "cc/debug/traced_value.h" 17 #include "cc/debug/traced_value.h"
18 #include "cc/input/layer_scroll_offset_delegate.h" 18 #include "cc/input/layer_scroll_offset_delegate.h"
19 #include "cc/layers/layer_utils.h" 19 #include "cc/layers/layer_utils.h"
20 #include "cc/layers/painted_scrollbar_layer_impl.h" 20 #include "cc/layers/painted_scrollbar_layer_impl.h"
21 #include "cc/output/copy_output_request.h" 21 #include "cc/output/copy_output_request.h"
22 #include "cc/quads/debug_border_draw_quad.h" 22 #include "cc/quads/debug_border_draw_quad.h"
23 #include "cc/quads/render_pass.h"
23 #include "cc/trees/layer_tree_host_common.h" 24 #include "cc/trees/layer_tree_host_common.h"
24 #include "cc/trees/layer_tree_impl.h" 25 #include "cc/trees/layer_tree_impl.h"
25 #include "cc/trees/layer_tree_settings.h" 26 #include "cc/trees/layer_tree_settings.h"
26 #include "cc/trees/proxy.h" 27 #include "cc/trees/proxy.h"
27 #include "ui/gfx/box_f.h" 28 #include "ui/gfx/box_f.h"
28 #include "ui/gfx/geometry/vector2d_conversions.h" 29 #include "ui/gfx/geometry/vector2d_conversions.h"
29 #include "ui/gfx/point_conversions.h" 30 #include "ui/gfx/point_conversions.h"
30 #include "ui/gfx/quad_f.h" 31 #include "ui/gfx/quad_f.h"
31 #include "ui/gfx/rect_conversions.h" 32 #include "ui/gfx/rect_conversions.h"
32 #include "ui/gfx/size_conversions.h" 33 #include "ui/gfx/size_conversions.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 } 333 }
333 334
334 bool LayerImpl::HasDelegatedContent() const { 335 bool LayerImpl::HasDelegatedContent() const {
335 return false; 336 return false;
336 } 337 }
337 338
338 bool LayerImpl::HasContributingDelegatedRenderPasses() const { 339 bool LayerImpl::HasContributingDelegatedRenderPasses() const {
339 return false; 340 return false;
340 } 341 }
341 342
342 RenderPass::Id LayerImpl::FirstContributingRenderPassId() const { 343 RenderPassId LayerImpl::FirstContributingRenderPassId() const {
343 return RenderPass::Id(0, 0); 344 return RenderPassId(0, 0);
344 } 345 }
345 346
346 RenderPass::Id LayerImpl::NextContributingRenderPassId(RenderPass::Id id) 347 RenderPassId LayerImpl::NextContributingRenderPassId(RenderPassId id) const {
347 const { 348 return RenderPassId(0, 0);
348 return RenderPass::Id(0, 0);
349 } 349 }
350 350
351 ResourceProvider::ResourceId LayerImpl::ContentsResourceId() const { 351 ResourceProvider::ResourceId LayerImpl::ContentsResourceId() const {
352 NOTREACHED(); 352 NOTREACHED();
353 return 0; 353 return 0;
354 } 354 }
355 355
356 void LayerImpl::SetSentScrollDelta(const gfx::Vector2d& sent_scroll_delta) { 356 void LayerImpl::SetSentScrollDelta(const gfx::Vector2d& sent_scroll_delta) {
357 // Pending tree never has sent scroll deltas 357 // Pending tree never has sent scroll deltas
358 DCHECK(layer_tree_impl()->IsActiveTree()); 358 DCHECK(layer_tree_impl()->IsActiveTree());
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1535 } 1535 }
1536 1536
1537 void LayerImpl::NotifyAnimationFinished( 1537 void LayerImpl::NotifyAnimationFinished(
1538 base::TimeTicks monotonic_time, 1538 base::TimeTicks monotonic_time,
1539 Animation::TargetProperty target_property) { 1539 Animation::TargetProperty target_property) {
1540 if (target_property == Animation::ScrollOffset) 1540 if (target_property == Animation::ScrollOffset)
1541 layer_tree_impl_->InputScrollAnimationFinished(); 1541 layer_tree_impl_->InputScrollAnimationFinished();
1542 } 1542 }
1543 1543
1544 } // namespace cc 1544 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/render_surface_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698