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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmap.h

Issue 2738573002: Streamline the presentation of ImageBitmapRenderingContext (Closed)
Patch Set: Fixed expectations Created 3 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
Index: third_party/WebKit/Source/core/frame/ImageBitmap.h
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.h b/third_party/WebKit/Source/core/frame/ImageBitmap.h
index 99fd4d56562ff925fa6ae68234bab2d1d45a154e..0f784e1487c872c4cdb2e985e85136a837e095a8 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.h
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.h
@@ -96,9 +96,7 @@ class CORE_EXPORT ImageBitmap final
using WebType = sk_sp<SkImage>;
static ImageBitmap* take(ScriptPromiseResolver*, sk_sp<SkImage>);
- StaticBitmapImage* bitmapImage() const {
- return (m_image) ? m_image.get() : nullptr;
- }
+ PassRefPtr<StaticBitmapImage> bitmapImage() const { return m_image; }
PassRefPtr<Uint8Array> copyBitmapData(AlphaDisposition = DontPremultiplyAlpha,
DataColorFormat = RGBAColorType);
unsigned long width() const;

Powered by Google App Engine
This is Rietveld 408576698