Commit b049288f authored by reed@google.com's avatar reed@google.com

use setInfo instead of (deprecated) setConfig

TBR=ajuma
NOTRY=True
cq failures are unrelated to this CL

Review URL: https://codereview.chromium.org/314563002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274495 0039d316-1c4b-4281-b951-d872f2087c98
parent 7f284115
...@@ -648,7 +648,7 @@ static SkBitmap ApplyImageFilter( ...@@ -648,7 +648,7 @@ static SkBitmap ApplyImageFilter(
}; };
// Place the platform texture inside an SkBitmap. // Place the platform texture inside an SkBitmap.
SkBitmap source; SkBitmap source;
source.setConfig(info); source.setInfo(info);
skia::RefPtr<SkGrPixelRef> pixel_ref = skia::RefPtr<SkGrPixelRef> pixel_ref =
skia::AdoptRef(new SkGrPixelRef(info, texture.get())); skia::AdoptRef(new SkGrPixelRef(info, texture.get()));
source.setPixelRef(pixel_ref.get()); source.setPixelRef(pixel_ref.get());
...@@ -752,7 +752,7 @@ static SkBitmap ApplyBlendModeWithBackdrop( ...@@ -752,7 +752,7 @@ static SkBitmap ApplyBlendModeWithBackdrop(
}; };
// Place the platform texture inside an SkBitmap. // Place the platform texture inside an SkBitmap.
SkBitmap source; SkBitmap source;
source.setConfig(source_info); source.setInfo(source_info);
skia::RefPtr<SkGrPixelRef> source_pixel_ref = skia::RefPtr<SkGrPixelRef> source_pixel_ref =
skia::AdoptRef(new SkGrPixelRef(source_info, source_texture.get())); skia::AdoptRef(new SkGrPixelRef(source_info, source_texture.get()));
source.setPixelRef(source_pixel_ref.get()); source.setPixelRef(source_pixel_ref.get());
...@@ -765,7 +765,7 @@ static SkBitmap ApplyBlendModeWithBackdrop( ...@@ -765,7 +765,7 @@ static SkBitmap ApplyBlendModeWithBackdrop(
}; };
SkBitmap background; SkBitmap background;
background.setConfig(background_info); background.setInfo(background_info);
skia::RefPtr<SkGrPixelRef> background_pixel_ref = skia::RefPtr<SkGrPixelRef> background_pixel_ref =
skia::AdoptRef(new SkGrPixelRef( skia::AdoptRef(new SkGrPixelRef(
background_info, background_texture.get())); background_info, background_texture.get()));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment