Index: content/browser/compositor/delegated_frame_host.cc |
diff --git a/content/browser/compositor/delegated_frame_host.cc b/content/browser/compositor/delegated_frame_host.cc |
index 29344440ae716f15bf8100e0625c335acdac403d..e944f8491bfd4cea32a910d55dc5bf6518c9d7ee 100644 |
--- a/content/browser/compositor/delegated_frame_host.cc |
+++ b/content/browser/compositor/delegated_frame_host.cc |
@@ -574,6 +574,9 @@ void DelegatedFrameHost::PrepareTextureCopyOutputResult( |
base::ScopedClosureRunner scoped_callback_runner( |
base::Bind(callback, false, SkBitmap())); |
+ // TODO(sikugu): We should be able to validate the format here using |
+ // GLHelper::IsReadbackConfigSupported before we processs the result. |
+ // See crbug.com/415682. |
scoped_ptr<SkBitmap> bitmap(new SkBitmap); |
if (!bitmap->tryAllocPixels(SkImageInfo::Make(dst_size_in_pixel.width(), |
dst_size_in_pixel.height(), |