Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: content/renderer/image_downloader/image_downloader_impl.cc

Issue 1906773003: Enable SkBitmap to be used by Mojo in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/image_downloader/image_downloader_impl.h" 5 #include "content/renderer/image_downloader/image_downloader_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 base::MessageLoop::current()->DeleteSoon(FROM_HERE, fetcher); 214 base::MessageLoop::current()->DeleteSoon(FROM_HERE, fetcher);
215 } 215 }
216 } 216 }
217 217
218 void ImageDownloaderImpl::ReplyDownloadResult( 218 void ImageDownloaderImpl::ReplyDownloadResult(
219 int32_t http_status_code, 219 int32_t http_status_code,
220 const std::vector<SkBitmap>& result_images, 220 const std::vector<SkBitmap>& result_images,
221 const std::vector<gfx::Size>& result_original_image_sizes, 221 const std::vector<gfx::Size>& result_original_image_sizes,
222 const DownloadImageCallback& callback) { 222 const DownloadImageCallback& callback) {
223 callback.Run(http_status_code, 223 callback.Run(http_status_code,
224 mojo::Array<skia::mojom::BitmapPtr>::From(result_images), 224 mojo::Array<blink::mojom::BitmapPtr>::From(result_images),
225 mojo::Array<mojo::SizePtr>::From(result_original_image_sizes)); 225 mojo::Array<mojo::SizePtr>::From(result_original_image_sizes));
226 } 226 }
227 227
228 } // namespace content 228 } // namespace content
OLDNEW
« no previous file with comments | « content/common/image_downloader/image_downloader.mojom ('k') | mash/shelf/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698