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

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

Issue 1144523003: Rename cc::ResourceProvider::ResourceId to cc::ResourceId and move it to its own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 463
464 bool page_scale_animation_active() const { return !!page_scale_animation_; } 464 bool page_scale_animation_active() const { return !!page_scale_animation_; }
465 465
466 virtual void CreateUIResource(UIResourceId uid, 466 virtual void CreateUIResource(UIResourceId uid,
467 const UIResourceBitmap& bitmap); 467 const UIResourceBitmap& bitmap);
468 // Deletes a UI resource. May safely be called more than once. 468 // Deletes a UI resource. May safely be called more than once.
469 virtual void DeleteUIResource(UIResourceId uid); 469 virtual void DeleteUIResource(UIResourceId uid);
470 void EvictAllUIResources(); 470 void EvictAllUIResources();
471 bool EvictedUIResourcesExist() const; 471 bool EvictedUIResourcesExist() const;
472 472
473 virtual ResourceProvider::ResourceId ResourceIdForUIResource( 473 virtual ResourceId ResourceIdForUIResource(UIResourceId uid) const;
474 UIResourceId uid) const;
475 474
476 virtual bool IsUIResourceOpaque(UIResourceId uid) const; 475 virtual bool IsUIResourceOpaque(UIResourceId uid) const;
477 476
478 struct UIResourceData { 477 struct UIResourceData {
479 ResourceProvider::ResourceId resource_id; 478 ResourceId resource_id;
480 gfx::Size size; 479 gfx::Size size;
481 bool opaque; 480 bool opaque;
482 }; 481 };
483 482
484 void ScheduleMicroBenchmark(scoped_ptr<MicroBenchmarkImpl> benchmark); 483 void ScheduleMicroBenchmark(scoped_ptr<MicroBenchmarkImpl> benchmark);
485 484
486 CompositorFrameMetadata MakeCompositorFrameMetadata() const; 485 CompositorFrameMetadata MakeCompositorFrameMetadata() const;
487 // Viewport rectangle and clip in nonflipped window space. These rects 486 // Viewport rectangle and clip in nonflipped window space. These rects
488 // should only be used by Renderer subclasses to populate glViewport/glClip 487 // should only be used by Renderer subclasses to populate glViewport/glClip
489 // and their software-mode equivalents. 488 // and their software-mode equivalents.
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 759 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
761 760
762 scoped_ptr<Viewport> viewport_; 761 scoped_ptr<Viewport> viewport_;
763 762
764 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 763 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
765 }; 764 };
766 765
767 } // namespace cc 766 } // namespace cc
768 767
769 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 768 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698