| OLD | NEW |
| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 | 505 |
| 506 // TODO(mithro): Remove this methods which exposes the internal | 506 // TODO(mithro): Remove this methods which exposes the internal |
| 507 // BeginFrameArgs to external callers. | 507 // BeginFrameArgs to external callers. |
| 508 virtual BeginFrameArgs CurrentBeginFrameArgs() const; | 508 virtual BeginFrameArgs CurrentBeginFrameArgs() const; |
| 509 | 509 |
| 510 // Expected time between two begin impl frame calls. | 510 // Expected time between two begin impl frame calls. |
| 511 base::TimeDelta CurrentBeginFrameInterval() const; | 511 base::TimeDelta CurrentBeginFrameInterval() const; |
| 512 | 512 |
| 513 void AsValueWithFrameInto(FrameData* frame, | 513 void AsValueWithFrameInto(FrameData* frame, |
| 514 base::trace_event::TracedValue* value) const; | 514 base::trace_event::TracedValue* value) const; |
| 515 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValueWithFrame( | 515 scoped_ptr<base::trace_event::ConvertableToTraceFormat> AsValueWithFrame( |
| 516 FrameData* frame) const; | 516 FrameData* frame) const; |
| 517 void ActivationStateAsValueInto(base::trace_event::TracedValue* value) const; | 517 void ActivationStateAsValueInto(base::trace_event::TracedValue* value) const; |
| 518 | 518 |
| 519 bool page_scale_animation_active() const { return !!page_scale_animation_; } | 519 bool page_scale_animation_active() const { return !!page_scale_animation_; } |
| 520 | 520 |
| 521 virtual void CreateUIResource(UIResourceId uid, | 521 virtual void CreateUIResource(UIResourceId uid, |
| 522 const UIResourceBitmap& bitmap); | 522 const UIResourceBitmap& bitmap); |
| 523 // Deletes a UI resource. May safely be called more than once. | 523 // Deletes a UI resource. May safely be called more than once. |
| 524 virtual void DeleteUIResource(UIResourceId uid); | 524 virtual void DeleteUIResource(UIResourceId uid); |
| 525 void EvictAllUIResources(); | 525 void EvictAllUIResources(); |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 837 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
| 838 | 838 |
| 839 scoped_ptr<Viewport> viewport_; | 839 scoped_ptr<Viewport> viewport_; |
| 840 | 840 |
| 841 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 841 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 842 }; | 842 }; |
| 843 | 843 |
| 844 } // namespace cc | 844 } // namespace cc |
| 845 | 845 |
| 846 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 846 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |