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

Side by Side Diff: cc/tile.h

Issue 11348384: cc: Use asynchronous set pixels API for impl-side painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and removed unused CheckForPendingSetPixelsCompletion(). Created 8 years 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_TILE_H_ 5 #ifndef CC_TILE_H_
6 #define CC_TILE_H_ 6 #define CC_TILE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 28 matching lines...) Expand all
39 39
40 TilePriority combined_priority() const { 40 TilePriority combined_priority() const {
41 return TilePriority(priority_[ACTIVE_TREE], 41 return TilePriority(priority_[ACTIVE_TREE],
42 priority_[PENDING_TREE]); 42 priority_[PENDING_TREE]);
43 } 43 }
44 44
45 void set_priority(WhichTree tree, const TilePriority& priority); 45 void set_priority(WhichTree tree, const TilePriority& priority);
46 46
47 // Returns 0 if not drawable. 47 // Returns 0 if not drawable.
48 ResourceProvider::ResourceId resource_id() const { 48 ResourceProvider::ResourceId resource_id() const {
49 return managed_state_.resource ? managed_state_.resource->id() : 0; 49 return managed_state_.resource_id;
50 } 50 }
51 51
52 const gfx::Rect& opaque_rect() const { return opaque_rect_; } 52 const gfx::Rect& opaque_rect() const { return opaque_rect_; }
53 53
54 bool contents_swizzled() const { return managed_state_.contents_swizzled; } 54 bool contents_swizzled() const { return managed_state_.contents_swizzled; }
55 55
56 private: 56 private:
57 // Methods called by by tile manager. 57 // Methods called by by tile manager.
58 friend class TileManager; 58 friend class TileManager;
59 friend class BinComparator; 59 friend class BinComparator;
(...skipping 14 matching lines...) Expand all
74 float contents_scale_; 74 float contents_scale_;
75 gfx::Rect opaque_rect_; 75 gfx::Rect opaque_rect_;
76 76
77 TilePriority priority_[2]; 77 TilePriority priority_[2];
78 ManagedTileState managed_state_; 78 ManagedTileState managed_state_;
79 }; 79 };
80 80
81 } // namespace cc 81 } // namespace cc
82 82
83 #endif // CC_TILE_H_ 83 #endif // CC_TILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698