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

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

Issue 12676029: cc: Fix capitalization style in chromified files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_common.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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 virtual void BeginCommit(); 133 virtual void BeginCommit();
134 virtual void CommitComplete(); 134 virtual void CommitComplete();
135 virtual void Animate(base::TimeTicks monotonic_time, 135 virtual void Animate(base::TimeTicks monotonic_time,
136 base::Time wall_clock_time); 136 base::Time wall_clock_time);
137 137
138 void ManageTiles(); 138 void ManageTiles();
139 void SetAnticipatedDrawTime(base::TimeTicks time); 139 void SetAnticipatedDrawTime(base::TimeTicks time);
140 140
141 // Returns false if problems occured preparing the frame, and we should try 141 // Returns false if problems occured preparing the frame, and we should try
142 // to avoid displaying the frame. If prepareToDraw is called, DidDrawAllLayers 142 // to avoid displaying the frame. If PrepareToDraw is called, DidDrawAllLayers
143 // must also be called, regardless of whether DrawLayers is called between the 143 // must also be called, regardless of whether DrawLayers is called between the
144 // two. 144 // two.
145 virtual bool PrepareToDraw(FrameData* frame); 145 virtual bool PrepareToDraw(FrameData* frame);
146 virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time); 146 virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time);
147 // Must be called if and only if PrepareToDraw was called. 147 // Must be called if and only if PrepareToDraw was called.
148 void DidDrawAllLayers(const FrameData& frame); 148 void DidDrawAllLayers(const FrameData& frame);
149 149
150 const LayerTreeSettings& settings() const { return settings_; } 150 const LayerTreeSettings& settings() const { return settings_; }
151 151
152 // Returns the currently visible viewport size in DIP. This value excludes 152 // Returns the currently visible viewport size in DIP. This value excludes
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 float scale, 243 float scale,
244 base::TimeDelta duration); 244 base::TimeDelta duration);
245 245
246 bool needs_animate_layers() const { 246 bool needs_animate_layers() const {
247 return !animation_registrar_->active_animation_controllers().empty(); 247 return !animation_registrar_->active_animation_controllers().empty();
248 } 248 }
249 249
250 void SendManagedMemoryStats( 250 void SendManagedMemoryStats(
251 size_t memory_visible_bytes, 251 size_t memory_visible_bytes,
252 size_t memory_visible_and_nearby_bytes, 252 size_t memory_visible_and_nearby_bytes,
253 size_t memoryUseBytes); 253 size_t memory_use_bytes);
254 254
255 FrameRateCounter* fps_counter() { 255 FrameRateCounter* fps_counter() {
256 return fps_counter_.get(); 256 return fps_counter_.get();
257 } 257 }
258 PaintTimeCounter* paint_time_counter() { 258 PaintTimeCounter* paint_time_counter() {
259 return paint_time_counter_.get(); 259 return paint_time_counter_.get();
260 } 260 }
261 MemoryHistory* memory_history() { 261 MemoryHistory* memory_history() {
262 return memory_history_.get(); 262 return memory_history_.get();
263 } 263 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 358
359 LayerTreeHostImplClient* client_; 359 LayerTreeHostImplClient* client_;
360 Proxy* proxy_; 360 Proxy* proxy_;
361 361
362 private: 362 private:
363 void AnimatePageScale(base::TimeTicks monotonic_time); 363 void AnimatePageScale(base::TimeTicks monotonic_time);
364 void AnimateScrollbars(base::TimeTicks monotonic_time); 364 void AnimateScrollbars(base::TimeTicks monotonic_time);
365 void AnimateTopControls(base::TimeTicks monotonic_time); 365 void AnimateTopControls(base::TimeTicks monotonic_time);
366 366
367 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( 367 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta(
368 LayerImpl* layerImpl, 368 LayerImpl* layer_impl,
369 float scaleFromViewportToScreenSpace, 369 float scale_from_viewport_to_screen_space,
370 gfx::PointF viewportPoint, 370 gfx::PointF viewport_point,
371 gfx::Vector2dF viewportDelta); 371 gfx::Vector2dF viewport_delta);
372 372
373 void UpdateMaxScrollOffset(); 373 void UpdateMaxScrollOffset();
374 void TrackDamageForAllSurfaces(LayerImpl* root_draw_layer, 374 void TrackDamageForAllSurfaces(LayerImpl* root_draw_layer,
375 const LayerList& render_surface_layer_list); 375 const LayerList& render_surface_layer_list);
376 376
377 // Returns false if the frame should not be displayed. This function should 377 // Returns false if the frame should not be displayed. This function should
378 // only be called from prepareToDraw, as didDrawAllLayers must be called 378 // only be called from PrepareToDraw, as DidDrawAllLayers must be called
379 // if this helper function is called. 379 // if this helper function is called.
380 bool CalculateRenderPasses(FrameData* frame); 380 bool CalculateRenderPasses(FrameData* frame);
381 void SetBackgroundTickingEnabled(bool enabled); 381 void SetBackgroundTickingEnabled(bool enabled);
382 382
383 void SendDidLoseOutputSurfaceRecursive(LayerImpl* current); 383 void SendDidLoseOutputSurfaceRecursive(LayerImpl* current);
384 void ClearRenderSurfaces(); 384 void ClearRenderSurfaces();
385 bool EnsureRenderSurfaceLayerList(); 385 bool EnsureRenderSurfaceLayerList();
386 void ClearCurrentlyScrollingLayer(); 386 void ClearCurrentlyScrollingLayer();
387 387
388 void AnimateScrollbarsRecursive(LayerImpl* layer, 388 void AnimateScrollbarsRecursive(LayerImpl* layer,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 scoped_ptr<AnimationRegistrar> animation_registrar_; 459 scoped_ptr<AnimationRegistrar> animation_registrar_;
460 460
461 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 461 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
462 462
463 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 463 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
464 }; 464 };
465 465
466 } // namespace cc 466 } // namespace cc
467 467
468 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 468 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698