Chromium Code Reviews| Index: content/browser/compositor/surface_utils.cc |
| diff --git a/content/browser/compositor/surface_utils.cc b/content/browser/compositor/surface_utils.cc |
| index e0e49162781b9b649f38fb25a2d5e09d765082b5..4cbd80dfaba4f2b39b2b912799351c9e32a10d41 100644 |
| --- a/content/browser/compositor/surface_utils.cc |
| +++ b/content/browser/compositor/surface_utils.cc |
| @@ -76,7 +76,7 @@ void PrepareTextureCopyOutputResult( |
| if (!bitmap->tryAllocPixels(SkImageInfo::Make( |
| dst_size_in_pixel.width(), dst_size_in_pixel.height(), color_type, |
| kOpaque_SkAlphaType))) { |
| - scoped_callback_runner.Reset(base::Bind( |
| + scoped_callback_runner.ReplaceClosure(base::Bind( |
|
no sievers
2016/07/06 19:12:13
Ah so |callback| ended up getting called twice?
Sergey Ulanov
2016/07/06 19:13:32
Correct. Previously Reset() was calling the old ca
|
| callback, SkBitmap(), content::READBACK_BITMAP_ALLOCATION_FAILURE)); |
| return; |
| } |