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

Side by Side Diff: src/image/SkReadPixelsRec.h

Issue 789673007: add readPixels to SkImage (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkReadPixelsRec_DEFINED
9 #define SkReadPixelsRec_DEFINED
10
11 #include "SkImageInfo.h"
12
robertphillips 2014/12/10 15:26:57 // A helper class to abstract away some of the com
reed1 2014/12/10 15:35:20 Done.
13 struct SkReadPixelsRec {
14 SkReadPixelsRec(const SkImageInfo& info, void* pixels, size_t rowBytes, int x, int y)
15 : fPixels(pixels)
16 , fRowBytes(rowBytes)
17 , fInfo(info)
18 , fX(x)
19 , fY(y)
20 {}
21
22 void* fPixels;
23 size_t fRowBytes;
24 SkImageInfo fInfo;
25 int fX;
26 int fY;
27
28 bool trim(int srcWidth, int srcHeight);
29 };
30
31 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698