diff options
Diffstat (limited to 'ui/gfx/blit_unittest.cc')
-rw-r--r-- | ui/gfx/blit_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gfx/blit_unittest.cc b/ui/gfx/blit_unittest.cc index 356c66f..0a3217b 100644 --- a/ui/gfx/blit_unittest.cc +++ b/ui/gfx/blit_unittest.cc @@ -20,7 +20,7 @@ namespace { template<int w, int h> void SetToCanvas(skia::PlatformCanvas* canvas, uint8 values[h][w]) { SkBitmap& bitmap = const_cast<SkBitmap&>( - canvas->getTopPlatformDevice().accessBitmap(true)); + skia::GetTopDevice(*canvas)->accessBitmap(true)); SkAutoLockPixels lock(bitmap); ASSERT_EQ(w, bitmap.width()); ASSERT_EQ(h, bitmap.height()); @@ -40,7 +40,7 @@ void SetToCanvas(skia::PlatformCanvas* canvas, uint8 values[h][w]) { template<int w, int h> void VerifyCanvasValues(skia::PlatformCanvas* canvas, uint8 values[h][w]) { SkBitmap& bitmap = const_cast<SkBitmap&>( - canvas->getTopPlatformDevice().accessBitmap(true)); + skia::GetTopDevice(*canvas)->accessBitmap(true)); SkAutoLockPixels lock(bitmap); ASSERT_EQ(w, bitmap.width()); ASSERT_EQ(h, bitmap.height()); |