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

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

Issue 2196963002: Add a new class AcceleratedStaticBitmap : StaticBitmapImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + minor clean up Created 4 years, 5 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.cpp
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
index 64f5b0a215e0cdaf9ee2ad44d64f257cfb7b1939..58fb46e95af4d83aae6165c2ce67d52fffb34ba8 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
@@ -7,6 +7,7 @@
#include "core/html/HTMLCanvasElement.h"
#include "core/html/HTMLVideoElement.h"
#include "core/html/ImageData.h"
+#include "platform/graphics/AcceleratedStaticBitmapImage.h"
#include "platform/graphics/skia/SkiaUtils.h"
#include "platform/image-decoders/ImageDecoder.h"
#include "third_party/skia/include/core/SkCanvas.h"
@@ -516,7 +517,7 @@ ImageBitmap::ImageBitmap(PassRefPtr<StaticBitmapImage> image)
ImageBitmap::ImageBitmap(WebExternalTextureMailbox& mailbox)
{
- m_image = StaticBitmapImage::create(mailbox);
+ m_image = AcceleratedStaticBitmapImage::create(mailbox);
}
PassRefPtr<StaticBitmapImage> ImageBitmap::transfer()

Powered by Google App Engine
This is Rietveld 408576698