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

Side by Side Diff: cc/tile.h

Issue 11369130: [cc] Tiles and tile manager for impl side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixen Created 8 years, 1 month 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/cc.gyp ('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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_TILE_H_
6 #define CC_TILE_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "cc/picture_pile.h"
10 #include "cc/resource_provider.h"
11 #include "cc/tile_priority.h"
12 #include "ui/gfx/rect.h"
13 #include "ui/gfx/size.h"
14
15 namespace cc {
16
17 class TileManager;
18
19 enum TileQuality {
20 LOW_TILE_QUALITY,
21 NORMAL_TILE_QUALITY
22 };
23
24 class Tile : public base::RefCounted<Tile> {
25 public:
26 Tile(TileManager* tile_manager,
27 gfx::Size tile_size,
28 gfx::Rect rect_inside_picture,
29 TileQuality quality);
30
31 void SetPicturePile(int frame_number, scoped_ptr<PicturePile> picture_pile) {}
32 void SetPriority(int frame_number, TilePriority) {}
33
34 bool IsDrawable(int frame_number) { return false; }
35 ResourceProvider::ResourceId GetDrawableResourceId(int frame_number) { return 0; }
36
37 private:
38 friend class base::RefCounted<Tile>;
39 friend class TileManager;
40
41 ~Tile();
42
43 TileManager* tile_manager_;
44 gfx::Rect tile_size_;
45 gfx::Rect rect_inside_picture_;
46 TileQuality quality_;
47 };
48
49 } // namespace cc
50 #endif
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698