| Index: third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
|
| index 6dbde204f9575b7b14f6306645f91868c11ad5e8..1f4acc570fa7bec1914261027ef2c5c90b9cde05 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "gpu/command_buffer/common/mailbox.h"
|
| #include "gpu/command_buffer/common/sync_token.h"
|
| +#include "platform/CrossThreadCopier.h"
|
| #include "platform/graphics/Image.h"
|
| #include "third_party/khronos/GLES2/gl2.h"
|
| #include "third_party/skia/include/core/SkRefCnt.h"
|
| @@ -82,6 +83,18 @@ class PLATFORM_EXPORT StaticBitmapImage : public Image {
|
| bool is_premultiplied_ = true;
|
| };
|
|
|
| +template <>
|
| +struct CrossThreadCopier<RefPtr<StaticBitmapImage>> {
|
| + typedef RefPtr<StaticBitmapImage> Type;
|
| + static Type Copy(RefPtr<StaticBitmapImage> image) {
|
| + if (image) {
|
| + CHECK(image->HasOneRef());
|
| + image->Transfer();
|
| + }
|
| + return image;
|
| + }
|
| +};
|
| +
|
| } // namespace blink
|
|
|
| #endif
|
|
|