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

Unified Diff: cc/playback/display_list_recording_source_unittest.cc

Issue 1294673006: Update GatherPixelRefDevice to the new SkImage/SkPixelRef API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update cc_unittests Created 5 years, 4 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
« no previous file with comments | « cc/playback/display_list_raster_source_unittest.cc ('k') | cc/playback/picture_pile_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/display_list_recording_source_unittest.cc
diff --git a/cc/playback/display_list_recording_source_unittest.cc b/cc/playback/display_list_recording_source_unittest.cc
index 14823614b862a6c8a10b8962b6af43f83b01c9ff..1e602c270fb2a23651e49bb9baef6447d89b44a5 100644
--- a/cc/playback/display_list_recording_source_unittest.cc
+++ b/cc/playback/display_list_recording_source_unittest.cc
@@ -29,17 +29,17 @@ TEST_F(DisplayListRecordingSourceTest, DiscardablePixelRefsWithTransform) {
recording_source->SetGridCellSize(grid_cell_size);
SkBitmap discardable_bitmap[2][2];
gfx::Transform identity_transform;
- CreateBitmap(gfx::Size(32, 32), "discardable", &discardable_bitmap[0][0]);
+ CreateDiscardableBitmap(gfx::Size(32, 32), &discardable_bitmap[0][0]);
// Translate transform is equivalent to moving using point.
gfx::Transform translate_transform;
translate_transform.Translate(0, 130);
- CreateBitmap(gfx::Size(32, 32), "discardable", &discardable_bitmap[1][0]);
+ CreateDiscardableBitmap(gfx::Size(32, 32), &discardable_bitmap[1][0]);
// This moves the bitmap to center of viewport and rotate, this would make
// this bitmap in all four tile grids.
gfx::Transform rotate_transform;
rotate_transform.Translate(112, 112);
rotate_transform.Rotate(45);
- CreateBitmap(gfx::Size(32, 32), "discardable", &discardable_bitmap[1][1]);
+ CreateDiscardableBitmap(gfx::Size(32, 32), &discardable_bitmap[1][1]);
gfx::RectF rect(0, 0, 32, 32);
gfx::RectF translate_rect = rect;
« no previous file with comments | « cc/playback/display_list_raster_source_unittest.cc ('k') | cc/playback/picture_pile_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698