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

Unified Diff: third_party/WebKit/Source/core/html/ImageData.h

Issue 2849643002: Implement ImageData::CropRect() (Closed)
Patch Set: Addressing comments Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/ImageData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/ImageData.h
diff --git a/third_party/WebKit/Source/core/html/ImageData.h b/third_party/WebKit/Source/core/html/ImageData.h
index 420dda769df90f6e0ba72cc4f364d41629b8f905..8d03a8cfafa7eb749ecd461cf7f4062f976ebb02 100644
--- a/third_party/WebKit/Source/core/html/ImageData.h
+++ b/third_party/WebKit/Source/core/html/ImageData.h
@@ -39,6 +39,7 @@
#include "platform/bindings/ScriptWrappable.h"
#include "platform/geometry/IntRect.h"
#include "platform/geometry/IntSize.h"
+#include "platform/graphics/CanvasColorParams.h"
#include "platform/heap/Handle.h"
#include "platform/wtf/CheckedNumeric.h"
#include "platform/wtf/Compiler.h"
@@ -108,8 +109,8 @@ class CORE_EXPORT ImageData final : public GarbageCollectedFinalized<ImageData>,
static ImageData* CreateForTest(const IntSize&,
DOMArrayBufferView*,
const ImageDataColorSettings* = nullptr);
- static sk_sp<SkColorSpace> GetSkColorSpaceForTest(const CanvasColorSpace&,
- const CanvasPixelFormat&);
+
+ ImageData* CropRect(const IntRect&, bool = false);
static CanvasColorSpace GetCanvasColorSpace(const String&);
static String CanvasColorSpaceName(const CanvasColorSpace&);
@@ -193,9 +194,6 @@ class CORE_EXPORT ImageData final : public GarbageCollectedFinalized<ImageData>,
static DOMFloat32Array* ConvertFloat16ArrayToFloat32Array(const uint16_t*,
unsigned);
-
- static sk_sp<SkColorSpace> GetSkColorSpace(const CanvasColorSpace&,
- const CanvasPixelFormat&);
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/ImageData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698