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

Unified Diff: third_party/WebKit/Source/platform/graphics/UnacceleratedSimpleImageBufferSurface.h

Issue 1382883002: Fixing performance issue of creating imagebitmap from ImageData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/platform/graphics/UnacceleratedSimpleImageBufferSurface.h
diff --git a/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.h b/third_party/WebKit/Source/platform/graphics/UnacceleratedSimpleImageBufferSurface.h
similarity index 81%
copy from third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.h
copy to third_party/WebKit/Source/platform/graphics/UnacceleratedSimpleImageBufferSurface.h
index bc1139c1e23027497922aae1bd19948ff6d04559..d337c1c2bca3ff58634b27a7298375f5a244c1db 100644
--- a/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/UnacceleratedSimpleImageBufferSurface.h
@@ -28,8 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef UnacceleratedImageBufferSurface_h
-#define UnacceleratedImageBufferSurface_h
+#ifndef UnacceleratedSimpleImageBufferSurface_h
+#define UnacceleratedSimpleImageBufferSurface_h
#include "platform/graphics/ImageBufferSurface.h"
#include "wtf/RefPtr.h"
@@ -38,11 +38,11 @@ class SkSurface;
namespace blink {
-class PLATFORM_EXPORT UnacceleratedImageBufferSurface : public ImageBufferSurface {
- WTF_MAKE_NONCOPYABLE(UnacceleratedImageBufferSurface); WTF_MAKE_FAST_ALLOCATED(UnacceleratedImageBufferSurface);
+class PLATFORM_EXPORT UnacceleratedSimpleImageBufferSurface : public ImageBufferSurface {
+ WTF_MAKE_NONCOPYABLE(UnacceleratedSimpleImageBufferSurface); WTF_MAKE_FAST_ALLOCATED(UnacceleratedSimpleImageBufferSurface);
public:
- UnacceleratedImageBufferSurface(const IntSize&, OpacityMode = NonOpaque);
- ~UnacceleratedImageBufferSurface() override;
+ UnacceleratedSimpleImageBufferSurface(const IntSize&, OpacityMode = NonOpaque);
+ ~UnacceleratedSimpleImageBufferSurface() override;
SkCanvas* canvas() override;
bool isValid() const override;
@@ -56,3 +56,4 @@ private:
} // namespace blink
#endif
+

Powered by Google App Engine
This is Rietveld 408576698