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

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

Issue 1457683006: ImageBitmap using StaticBitmapImage instead of SkImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync with master Created 5 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c1376369ff5943c6c64be54a4335f625014607b5..ed4e543feb40624856211d1fb12582b60c63f6a2 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.h
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.h
@@ -12,8 +12,8 @@
#include "platform/geometry/IntRect.h"
#include "platform/graphics/Image.h"
#include "platform/graphics/ImageBuffer.h"
+#include "platform/graphics/StaticBitmapImage.h"
#include "platform/heap/Handle.h"
-#include "third_party/skia/include/core/SkImage.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -34,7 +34,7 @@ public:
static PassRefPtrWillBeRawPtr<ImageBitmap> create(ImageBitmap*, const IntRect&);
static PassRefPtrWillBeRawPtr<ImageBitmap> create(Image*, const IntRect&);
- SkImage* skImage() const { return (m_image) ? m_image.get() : nullptr; }
+ StaticBitmapImage* bitmapImage() const { return (m_image) ? m_image.get() : nullptr; }
unsigned long width() const;
unsigned long height() const;
IntSize size() const;
@@ -61,7 +61,7 @@ private:
void notifyImageSourceChanged() override;
bool requestsHighLiveResourceCachePriority() override { return true; }
- RefPtr<SkImage> m_image;
+ RefPtr<StaticBitmapImage> m_image;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698