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

Unified Diff: chrome/utility/image_decoder_impl_unittest.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/utility/image_decoder_impl.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/image_decoder_impl_unittest.cc
diff --git a/chrome/utility/image_decoder_impl_unittest.cc b/chrome/utility/image_decoder_impl_unittest.cc
index 45f257c8699d5258d85c293186315bbe882d7369..c0a1b5ffbc48b633151ebb2ad58afca4d4b47efb 100644
--- a/chrome/utility/image_decoder_impl_unittest.cc
+++ b/chrome/utility/image_decoder_impl_unittest.cc
@@ -46,15 +46,15 @@ class Request {
shrink, base::Bind(&Request::OnRequestDone, base::Unretained(this)));
}
- const skia::mojom::BitmapPtr& bitmap() const { return bitmap_; }
+ const blink::mojom::BitmapPtr& bitmap() const { return bitmap_; }
private:
- void OnRequestDone(skia::mojom::BitmapPtr result_image) {
+ void OnRequestDone(blink::mojom::BitmapPtr result_image) {
bitmap_ = std::move(result_image);
}
ImageDecoderImpl* decoder_;
- skia::mojom::BitmapPtr bitmap_;
+ blink::mojom::BitmapPtr bitmap_;
};
} // namespace
@@ -70,7 +70,7 @@ TEST(ImageDecoderImplTest, DecodeImageSizeLimit) {
// Approx max height for 3:2 image that will fit in IPC message;
// 1.5 for width/height ratio, 4 for bytes/pixel
int max_height_for_msg = sqrt(kTestMessageSize / (1.5 * 4));
- int base_msg_size = sizeof(skia::mojom::Bitmap::Data_);
+ int base_msg_size = sizeof(blink::mojom::Bitmap::Data_);
// Sizes which should trigger dimension-halving 0, 1 and 2 times
int heights[] = {max_height_for_msg - 10,
« no previous file with comments | « chrome/utility/image_decoder_impl.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698