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

Unified Diff: cc/picture_layer_impl.cc

Issue 11417002: First draft of TileManager's tile prioritzation system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layer_tree_host_impl.h ('k') | cc/tile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer_impl.cc
diff --git a/cc/picture_layer_impl.cc b/cc/picture_layer_impl.cc
index 1c84d11c371b94e9a093e96a7c08e887ca7c17b9..7ecb4b3f865cea063802ae182179d4cbec45d5c0 100644
--- a/cc/picture_layer_impl.cc
+++ b/cc/picture_layer_impl.cc
@@ -44,10 +44,8 @@ void PictureLayerImpl::appendQuads(QuadSink& quadSink,
PictureLayerTiling* tiling = tilings_[0];
for (PictureLayerTiling::Iterator iter(tiling, visible_rect); iter; ++iter) {
ResourceProvider::ResourceId resource;
- if (*iter) {
- resource = iter->GetDrawableResourceId(
- layerTreeHostImpl()->sourceFrameNumber());
- }
+ if (*iter)
+ resource = iter->resource_id();
if (!resource) {
// TODO(enne): draw checkerboards, etc...
@@ -89,10 +87,10 @@ scoped_refptr<Tile> PictureLayerImpl::CreateTile(PictureLayerTiling*,
return make_scoped_refptr(new Tile(
tile_manager,
+ &pile_,
rect.size(),
GL_RGBA,
- rect,
- NORMAL_TILE_QUALITY));
+ rect));
}
void PictureLayerImpl::SyncFromActiveLayer(const PictureLayerImpl* other) {
« no previous file with comments | « cc/layer_tree_host_impl.h ('k') | cc/tile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698