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

Unified Diff: cc/resources/tile_manager.h

Issue 21159007: cc: Adding support for RGBA_4444 tile textures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix raster-on-demand codepath Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: cc/resources/tile_manager.h
diff --git a/cc/resources/tile_manager.h b/cc/resources/tile_manager.h
index 1e5d7ff1cd5dbce91bfaceabc961b4a1500bcb66..189d1c55378d9d576d1927c9302951ca3a8bc7a7 100644
--- a/cc/resources/tile_manager.h
+++ b/cc/resources/tile_manager.h
@@ -87,7 +87,8 @@ class CC_EXPORT TileManager : public RasterWorkerPoolClient {
tile_version.resource_ = make_scoped_ptr(
new ResourcePool::Resource(resource_provider,
gfx::Size(1, 1),
- resource_provider->best_texture_format()));
+ resource_provider->best_texture_format(),
+ use_16_bit_tiles_));
bytes_releasable_ += tiles[i]->bytes_consumed_if_allocated();
++resources_releasable_;
@@ -177,6 +178,7 @@ class CC_EXPORT TileManager : public RasterWorkerPoolClient {
LayerPixelRefTaskMap image_decode_tasks_;
RasterTaskCompletionStats update_visible_tiles_stats_;
+ bool use_16_bit_tiles_;
DISALLOW_COPY_AND_ASSIGN(TileManager);
};

Powered by Google App Engine
This is Rietveld 408576698