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

Unified Diff: ui/gfx/image/image_util.h

Issue 2592983002: [devtools] Support different encodings for Page.CaptureScreenshot. (Closed)
Patch Set: Wait for load in CaptureScreenshotTest to fix android bot. Created 3 years, 11 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: ui/gfx/image/image_util.h
diff --git a/ui/gfx/image/image_util.h b/ui/gfx/image/image_util.h
index 8f17c368a8cada1d3456f17fc1b53b23c9eef03f..cee54a351f4e93f87be3bace6a65776dfcd9c114 100644
--- a/ui/gfx/image/image_util.h
+++ b/ui/gfx/image/image_util.h
@@ -33,6 +33,10 @@ GFX_EXPORT bool JPEG1xEncodedDataFromImage(const Image& image,
int quality,
std::vector<unsigned char>* dst);
+bool JPEG1xEncodedDataFromSkiaRepresentation(const Image& image,
Avi (use Gerrit) 2017/01/09 16:57:33 GFX_EXPORT?
Avi (use Gerrit) 2017/01/09 22:59:57 Ah, I see, this is for internal use only. Never mi
+ int quality,
+ std::vector<unsigned char>* dst);
+
// Computes the width of any nearly-transparent regions at the sides of the
// image and returns them in |left| and |right|. This checks each column of
// pixels from the outsides in, looking for anything with alpha above a

Powered by Google App Engine
This is Rietveld 408576698