X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcc%2Ftest%2Ffake_picture_pile_impl.cc;h=57a50742e3f0014639f388aa49ab5e5d5f5132ae;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=4bcf4b094266de0bc9a48f10d787f79e0edfba5b;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/cc/test/fake_picture_pile_impl.cc b/src/cc/test/fake_picture_pile_impl.cc index 4bcf4b0..57a5074 100644 --- a/src/cc/test/fake_picture_pile_impl.cc +++ b/src/cc/test/fake_picture_pile_impl.cc @@ -20,7 +20,7 @@ scoped_refptr FakePicturePileImpl::CreateFilledPile( const gfx::Size& tile_size, const gfx::Size& layer_bounds) { scoped_refptr pile(new FakePicturePileImpl()); - pile->tiling().SetTotalSize(layer_bounds); + pile->tiling().SetTilingRect(gfx::Rect(layer_bounds)); pile->tiling().SetMaxTextureSize(tile_size); pile->SetTileGridSize(ImplSidePaintingSettings().default_tile_size); pile->recorded_viewport_ = gfx::Rect(layer_bounds); @@ -36,7 +36,7 @@ scoped_refptr FakePicturePileImpl::CreateEmptyPile( const gfx::Size& tile_size, const gfx::Size& layer_bounds) { scoped_refptr pile(new FakePicturePileImpl()); - pile->tiling().SetTotalSize(layer_bounds); + pile->tiling().SetTilingRect(gfx::Rect(layer_bounds)); pile->tiling().SetMaxTextureSize(tile_size); pile->SetTileGridSize(ImplSidePaintingSettings().default_tile_size); pile->recorded_viewport_ = gfx::Rect(); @@ -49,7 +49,7 @@ FakePicturePileImpl::CreateEmptyPileThatThinksItHasRecordings( const gfx::Size& tile_size, const gfx::Size& layer_bounds) { scoped_refptr pile(new FakePicturePileImpl()); - pile->tiling().SetTotalSize(layer_bounds); + pile->tiling().SetTilingRect(gfx::Rect(layer_bounds)); pile->tiling().SetMaxTextureSize(tile_size); pile->SetTileGridSize(ImplSidePaintingSettings().default_tile_size); // This simulates a false positive for this flag. @@ -63,8 +63,8 @@ FakePicturePileImpl::CreateInfiniteFilledPile() { scoped_refptr pile(new FakePicturePileImpl()); gfx::Size size(std::numeric_limits::max(), std::numeric_limits::max()); - pile->Resize(size); - pile->tiling().SetTotalSize(size); + pile->SetTilingRect(gfx::Rect(size)); + pile->tiling().SetTilingRect(gfx::Rect(size)); pile->tiling().SetMaxTextureSize(size); pile->SetTileGridSize(size); pile->recorded_viewport_ = gfx::Rect(size); @@ -84,8 +84,8 @@ void FakePicturePileImpl::AddRecordingAt(int x, int y) { gfx::Rect bounds(tiling().TileBounds(x, y)); bounds.Inset(-buffer_pixels(), -buffer_pixels()); - scoped_refptr picture( - Picture::Create(bounds, &client_, tile_grid_info_, true, 0)); + scoped_refptr picture(Picture::Create( + bounds, &client_, tile_grid_info_, true, 0, Picture::RECORD_NORMALLY)); picture_map_[std::pair(x, y)].SetPicture(picture); EXPECT_TRUE(HasRecordingAt(x, y));