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

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 879913002: mechanical rename of base::debug -> base::trace_event for /cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_trace_part3
Patch Set: Edited a comment Created 5 years, 10 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/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('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 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 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void SetCurrentTopControlsShownRatio(float offset) override; 178 void SetCurrentTopControlsShownRatio(float offset) override;
179 float CurrentTopControlsShownRatio() const override; 179 float CurrentTopControlsShownRatio() const override;
180 void DidChangeTopControlsPosition() override; 180 void DidChangeTopControlsPosition() override;
181 bool HaveRootScrollLayer() const override; 181 bool HaveRootScrollLayer() const override;
182 182
183 void UpdateViewportContainerSizes(); 183 void UpdateViewportContainerSizes();
184 184
185 struct CC_EXPORT FrameData : public RenderPassSink { 185 struct CC_EXPORT FrameData : public RenderPassSink {
186 FrameData(); 186 FrameData();
187 ~FrameData() override; 187 ~FrameData() override;
188 void AsValueInto(base::debug::TracedValue* value) const; 188 void AsValueInto(base::trace_event::TracedValue* value) const;
189 189
190 std::vector<gfx::Rect> occluding_screen_space_rects; 190 std::vector<gfx::Rect> occluding_screen_space_rects;
191 std::vector<gfx::Rect> non_occluding_screen_space_rects; 191 std::vector<gfx::Rect> non_occluding_screen_space_rects;
192 std::vector<FrameTimingTracker::FrameAndRectIds> composite_events; 192 std::vector<FrameTimingTracker::FrameAndRectIds> composite_events;
193 RenderPassList render_passes; 193 RenderPassList render_passes;
194 RenderPassIdHashMap render_passes_by_id; 194 RenderPassIdHashMap render_passes_by_id;
195 const LayerImplList* render_surface_layer_list; 195 const LayerImplList* render_surface_layer_list;
196 LayerImplList will_draw_layers; 196 LayerImplList will_draw_layers;
197 bool has_no_damage; 197 bool has_no_damage;
198 198
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 445
446 void UpdateCurrentBeginFrameArgs(const BeginFrameArgs& args); 446 void UpdateCurrentBeginFrameArgs(const BeginFrameArgs& args);
447 void ResetCurrentBeginFrameArgsForNextFrame(); 447 void ResetCurrentBeginFrameArgsForNextFrame();
448 virtual BeginFrameArgs CurrentBeginFrameArgs() const; 448 virtual BeginFrameArgs CurrentBeginFrameArgs() const;
449 449
450 // Expected time between two begin impl frame calls. 450 // Expected time between two begin impl frame calls.
451 base::TimeDelta begin_impl_frame_interval() const { 451 base::TimeDelta begin_impl_frame_interval() const {
452 return begin_impl_frame_interval_; 452 return begin_impl_frame_interval_;
453 } 453 }
454 454
455 void AsValueInto(base::debug::TracedValue* value) const; 455 void AsValueInto(base::trace_event::TracedValue* value) const;
456 void AsValueWithFrameInto(FrameData* frame, 456 void AsValueWithFrameInto(FrameData* frame,
457 base::debug::TracedValue* value) const; 457 base::trace_event::TracedValue* value) const;
458 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const; 458 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const;
459 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValueWithFrame( 459 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValueWithFrame(
460 FrameData* frame) const; 460 FrameData* frame) const;
461 scoped_refptr<base::debug::ConvertableToTraceFormat> ActivationStateAsValue() 461 scoped_refptr<base::trace_event::ConvertableToTraceFormat>
462 const; 462 ActivationStateAsValue() const;
463 void ActivationStateAsValueInto(base::debug::TracedValue* value) const; 463 void ActivationStateAsValueInto(base::trace_event::TracedValue* value) const;
464 464
465 bool page_scale_animation_active() const { return !!page_scale_animation_; } 465 bool page_scale_animation_active() const { return !!page_scale_animation_; }
466 466
467 virtual void CreateUIResource(UIResourceId uid, 467 virtual void CreateUIResource(UIResourceId uid,
468 const UIResourceBitmap& bitmap); 468 const UIResourceBitmap& bitmap);
469 // Deletes a UI resource. May safely be called more than once. 469 // Deletes a UI resource. May safely be called more than once.
470 virtual void DeleteUIResource(UIResourceId uid); 470 virtual void DeleteUIResource(UIResourceId uid);
471 void EvictAllUIResources(); 471 void EvictAllUIResources();
472 bool EvictedUIResourcesExist() const; 472 bool EvictedUIResourcesExist() const;
473 473
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 bool is_likely_to_require_a_draw_; 742 bool is_likely_to_require_a_draw_;
743 743
744 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 744 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
745 745
746 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 746 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
747 }; 747 };
748 748
749 } // namespace cc 749 } // namespace cc
750 750
751 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 751 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698