| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 | 466 |
| 467 bool page_scale_animation_active() const { return !!page_scale_animation_; } | 467 bool page_scale_animation_active() const { return !!page_scale_animation_; } |
| 468 | 468 |
| 469 virtual void CreateUIResource(UIResourceId uid, | 469 virtual void CreateUIResource(UIResourceId uid, |
| 470 const UIResourceBitmap& bitmap); | 470 const UIResourceBitmap& bitmap); |
| 471 // Deletes a UI resource. May safely be called more than once. | 471 // Deletes a UI resource. May safely be called more than once. |
| 472 virtual void DeleteUIResource(UIResourceId uid); | 472 virtual void DeleteUIResource(UIResourceId uid); |
| 473 void EvictAllUIResources(); | 473 void EvictAllUIResources(); |
| 474 bool EvictedUIResourcesExist() const; | 474 bool EvictedUIResourcesExist() const; |
| 475 | 475 |
| 476 virtual ResourceProvider::ResourceId ResourceIdForUIResource( | 476 virtual ResourceId ResourceIdForUIResource(UIResourceId uid) const; |
| 477 UIResourceId uid) const; | |
| 478 | 477 |
| 479 virtual bool IsUIResourceOpaque(UIResourceId uid) const; | 478 virtual bool IsUIResourceOpaque(UIResourceId uid) const; |
| 480 | 479 |
| 481 struct UIResourceData { | 480 struct UIResourceData { |
| 482 ResourceProvider::ResourceId resource_id; | 481 ResourceId resource_id; |
| 483 gfx::Size size; | 482 gfx::Size size; |
| 484 bool opaque; | 483 bool opaque; |
| 485 }; | 484 }; |
| 486 | 485 |
| 487 void ScheduleMicroBenchmark(scoped_ptr<MicroBenchmarkImpl> benchmark); | 486 void ScheduleMicroBenchmark(scoped_ptr<MicroBenchmarkImpl> benchmark); |
| 488 | 487 |
| 489 CompositorFrameMetadata MakeCompositorFrameMetadata() const; | 488 CompositorFrameMetadata MakeCompositorFrameMetadata() const; |
| 490 // Viewport rectangle and clip in nonflipped window space. These rects | 489 // Viewport rectangle and clip in nonflipped window space. These rects |
| 491 // should only be used by Renderer subclasses to populate glViewport/glClip | 490 // should only be used by Renderer subclasses to populate glViewport/glClip |
| 492 // and their software-mode equivalents. | 491 // and their software-mode equivalents. |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 765 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
| 767 | 766 |
| 768 scoped_ptr<Viewport> viewport_; | 767 scoped_ptr<Viewport> viewport_; |
| 769 | 768 |
| 770 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 769 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 771 }; | 770 }; |
| 772 | 771 |
| 773 } // namespace cc | 772 } // namespace cc |
| 774 | 773 |
| 775 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 774 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |