Rename sk_bitmap to GetBitmap for ImageSkiaRep
This patch changes the accessor name from sk_bitmap() to GetBitmap. This
is done to prepare for the addition of Paint records which will require
a non inline function.
Bug: 882507
Change-Id: I3e05ec775d8978461b7e68e585a5eb9d8e2fbb16
Component: ImageSkiaRep, Bitmap, ui
Reviewed-on: https://chromium-review.googlesource.com/1255901
Reviewed-by: Scott Violet <[email protected]>
Reviewed-by: Greg Kerr <[email protected]>
Commit-Queue: Malay Keshav <[email protected]>
Cr-Commit-Position: refs/heads/master@{#595659}
diff --git a/chrome/browser/ui/webui/fileicon_source.cc b/chrome/browser/ui/webui/fileicon_source.cc
index da3b8a6..a7d16dd 100644
--- a/chrome/browser/ui/webui/fileicon_source.cc
+++ b/chrome/browser/ui/webui/fileicon_source.cc
@@ -103,8 +103,7 @@
if (icon) {
scoped_refptr<base::RefCountedBytes> icon_data(new base::RefCountedBytes);
gfx::PNGCodec::EncodeBGRASkBitmap(
- icon->ToImageSkia()->GetRepresentation(scale_factor).sk_bitmap(),
- false,
+ icon->ToImageSkia()->GetRepresentation(scale_factor).GetBitmap(), false,
&icon_data->data());
callback.Run(icon_data.get());
@@ -154,10 +153,10 @@
if (icon) {
scoped_refptr<base::RefCountedBytes> icon_data(new base::RefCountedBytes);
gfx::PNGCodec::EncodeBGRASkBitmap(
- icon->ToImageSkia()->GetRepresentation(
- details.scale_factor).sk_bitmap(),
- false,
- &icon_data->data());
+ icon->ToImageSkia()
+ ->GetRepresentation(details.scale_factor)
+ .GetBitmap(),
+ false, &icon_data->data());
details.callback.Run(icon_data.get());
} else {