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

Unified Diff: cc/test/fake_picture_layer_tiling_client.cc

Issue 793693003: Tile Compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.h ('k') | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer_tiling_client.cc
diff --git a/cc/test/fake_picture_layer_tiling_client.cc b/cc/test/fake_picture_layer_tiling_client.cc
index b21e01183c632d76fff76316436d5a95b4de2fa1..d72ad933508f6aac2d0f5317daa92ac73195ee53 100644
--- a/cc/test/fake_picture_layer_tiling_client.cc
+++ b/cc/test/fake_picture_layer_tiling_client.cc
@@ -26,7 +26,7 @@ FakePictureLayerTilingClient::FakePictureLayerTilingClient()
FakePictureLayerTilingClient::FakePictureLayerTilingClient(
ResourceProvider* resource_provider)
: resource_pool_(
- ResourcePool::Create(resource_provider, GL_TEXTURE_2D, RGBA_8888)),
+ ResourcePool::Create(resource_provider, GL_TEXTURE_2D, false)),
tile_manager_(
new FakeTileManager(&tile_manager_client_, resource_pool_.get())),
pile_(FakePicturePileImpl::CreateInfiniteFilledPile()),
@@ -43,10 +43,12 @@ FakePictureLayerTilingClient::~FakePictureLayerTilingClient() {
scoped_refptr<Tile> FakePictureLayerTilingClient::CreateTile(
PictureLayerTiling*,
- const gfx::Rect& rect) {
+ const gfx::Rect& rect,
+ int flags) {
if (!allow_create_tile_)
return scoped_refptr<Tile>();
- return tile_manager_->CreateTile(pile_.get(), tile_size_, rect, 1, 0, 0, 0);
+ return tile_manager_->CreateTile(pile_.get(), tile_size_, rect, 1, 0, 0,
+ flags);
}
void FakePictureLayerTilingClient::SetTileSize(const gfx::Size& tile_size) {
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.h ('k') | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698