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..c394b0bc75337d56900e10bafc95ae29a5fcc473 100644 |
| --- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp |
| +++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp |
| @@ -466,6 +466,13 @@ unsigned long ImageBitmap::height() const |
| return m_image->height(); |
| } |
| +// This function is used in WebGL's texImage, if it returns true, WebGL will a |
|
Justin Novosad
2016/06/09 20:21:29
"will do a"
xidachen
2016/06/10 15:36:08
Done.
|
| +// GPU-GPU texture copy. So this function returns true only when it has a mailbox. |
| +bool ImageBitmap::isTextureBacked() const |
| +{ |
| + return m_image && m_image->hasMailbox(); |
|
Justin Novosad
2016/06/09 20:21:29
What about the case where we have no mailbox, but
xidachen
2016/06/10 15:36:08
Changed the implementation to indicate whether bit
|
| +} |
| + |
| IntSize ImageBitmap::size() const |
| { |
| if (!m_image) |