Chromium Code Reviews| Index: third_party/WebKit/Source/core/frame/ImageBitmap.cpp |
| diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp |
| index 19d831308e299cff8b57d5825a9bd4400b1ecd03..47a03b94419d002851546a4d66429b2b5c7a2eb9 100644 |
| --- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp |
| +++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp |
| @@ -466,6 +466,11 @@ unsigned long ImageBitmap::height() const |
| return m_image->height(); |
| } |
| +bool ImageBitmap::isTextureBacked() const |
| +{ |
| + return (!m_image->hasSkImage() || m_image->hasContext3DProvider()); |
|
Justin Novosad
2016/06/07 15:11:07
This is hard to read. The "!m_image->hasSkImage()"
xidachen
2016/06/07 17:49:53
I actually tried that before and it is a bit compl
|
| +} |
| + |
| IntSize ImageBitmap::size() const |
| { |
| if (!m_image) |