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

Side by Side Diff: cc/tile.h

Issue 11466032: cc: Fix impl-side painting rasterization at >1 contents scales (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « cc/picture_pile_impl.cc ('k') | cc/tile.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 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"
11 #include "cc/layer_tree_host_impl.h" 11 #include "cc/layer_tree_host_impl.h"
12 #include "cc/picture_pile_impl.h" 12 #include "cc/picture_pile_impl.h"
13 #include "cc/resource_provider.h" 13 #include "cc/resource_provider.h"
14 #include "cc/tile_manager.h" 14 #include "cc/tile_manager.h"
15 #include "cc/tile_priority.h" 15 #include "cc/tile_priority.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 #include "ui/gfx/size.h" 17 #include "ui/gfx/size.h"
18 18
19 namespace cc { 19 namespace cc {
20 20
21 class Tile; 21 class Tile;
22 22
23 class CC_EXPORT Tile : public base::RefCounted<Tile> { 23 class CC_EXPORT Tile : public base::RefCounted<Tile> {
24 public: 24 public:
25 Tile(TileManager* tile_manager, 25 Tile(TileManager* tile_manager,
26 PicturePileImpl* picture_pile, 26 PicturePileImpl* picture_pile,
27 gfx::Size tile_size, 27 gfx::Size tile_size,
28 GLenum format, 28 GLenum format,
29 gfx::Rect rect_inside_picture, 29 gfx::Rect content_rect,
30 float contents_scale); 30 float contents_scale);
31 31
32 PicturePileImpl* picture_pile() { 32 PicturePileImpl* picture_pile() {
33 return picture_pile_.get(); 33 return picture_pile_.get();
34 } 34 }
35 35
36 const TilePriority& priority(WhichTree tree) const { 36 const TilePriority& priority(WhichTree tree) const {
37 return priority_[tree]; 37 return priority_[tree];
38 } 38 }
39 39
(...skipping 21 matching lines...) Expand all
61 float contents_scale() const { return contents_scale_; } 61 float contents_scale() const { return contents_scale_; }
62 62
63 // Normal private methods. 63 // Normal private methods.
64 friend class base::RefCounted<Tile>; 64 friend class base::RefCounted<Tile>;
65 ~Tile(); 65 ~Tile();
66 66
67 TileManager* tile_manager_; 67 TileManager* tile_manager_;
68 scoped_refptr<PicturePileImpl> picture_pile_; 68 scoped_refptr<PicturePileImpl> picture_pile_;
69 gfx::Rect tile_size_; 69 gfx::Rect tile_size_;
70 GLenum format_; 70 GLenum format_;
71 gfx::Rect rect_inside_picture_; 71 gfx::Rect content_rect_;
72 float contents_scale_; 72 float contents_scale_;
73 gfx::Rect opaque_rect_; 73 gfx::Rect opaque_rect_;
74 74
75 TilePriority priority_[2]; 75 TilePriority priority_[2];
76 ManagedTileState managed_state_; 76 ManagedTileState managed_state_;
77 }; 77 };
78 78
79 } // namespace cc 79 } // namespace cc
80 80
81 #endif // CC_TILE_H_ 81 #endif // CC_TILE_H_
OLDNEW
« no previous file with comments | « cc/picture_pile_impl.cc ('k') | cc/tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698