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

Unified Diff: Source/platform/graphics/GraphicsContext.h

Issue 203443004: use new readPixels, as old version using Config8888 is deprecated (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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: Source/platform/graphics/GraphicsContext.h
diff --git a/Source/platform/graphics/GraphicsContext.h b/Source/platform/graphics/GraphicsContext.h
index bafb0e410f7683d4c93942d01ad38a922bf1d5b6..049aafa1e818d7436f0000cad719d34e689962f5 100644
--- a/Source/platform/graphics/GraphicsContext.h
+++ b/Source/platform/graphics/GraphicsContext.h
@@ -204,7 +204,7 @@ public:
// ---------- End state management methods -----------------
// Get the contents of the image buffer
- bool readPixels(SkBitmap*, int, int, SkCanvas::Config8888 = SkCanvas::kNative_Premul_Config8888);
+ bool readPixels(const SkImageInfo&, void* pixels, size_t rowBytes, int x, int y);
// Sets up the paint for the current fill style.
void setupPaintForFilling(SkPaint*) const;
« no previous file with comments | « no previous file | Source/platform/graphics/GraphicsContext.cpp » ('j') | Source/platform/graphics/ImageBuffer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698