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

Side by Side Diff: include/gpu/SkGpuDevice.h

Issue 199413013: add new readPixels with direct memory parameters (Closed) Base URL: https://skia.googlecode.com/svn/trunk
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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; 139 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE;
140 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, 140 virtual bool filterImage(const SkImageFilter*, const SkBitmap&,
141 const SkImageFilter::Context&, 141 const SkImageFilter::Context&,
142 SkBitmap*, SkIPoint*) SK_OVERRIDE; 142 SkBitmap*, SkIPoint*) SK_OVERRIDE;
143 143
144 class SkAutoCachedTexture; // used internally 144 class SkAutoCachedTexture; // used internally
145 145
146 146
147 protected: 147 protected:
148 #ifdef SK_SUPPORT_LEGACY_READPIXELSCONFIG
148 virtual bool onReadPixels(const SkBitmap&, int x, int y, SkCanvas::Config888 8) SK_OVERRIDE; 149 virtual bool onReadPixels(const SkBitmap&, int x, int y, SkCanvas::Config888 8) SK_OVERRIDE;
150 #endif
151 virtual bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) SK_OV ERRIDE;
149 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int ) SK_OVERRIDE; 152 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int ) SK_OVERRIDE;
150 153
151 /** PRIVATE / EXPERIMENTAL -- do not call */ 154 /** PRIVATE / EXPERIMENTAL -- do not call */
152 virtual void EXPERIMENTAL_optimize(SkPicture* picture) SK_OVERRIDE; 155 virtual void EXPERIMENTAL_optimize(SkPicture* picture) SK_OVERRIDE;
153 /** PRIVATE / EXPERIMENTAL -- do not call */ 156 /** PRIVATE / EXPERIMENTAL -- do not call */
154 virtual bool EXPERIMENTAL_drawPicture(const SkPicture& picture) SK_OVERRIDE; 157 virtual bool EXPERIMENTAL_drawPicture(const SkPicture& picture) SK_OVERRIDE;
155 158
156 private: 159 private:
157 GrContext* fContext; 160 GrContext* fContext;
158 161
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 SkCanvas::DrawBitmapRectFlags flags, 220 SkCanvas::DrawBitmapRectFlags flags,
218 int tileSize, 221 int tileSize,
219 bool bicubic); 222 bool bicubic);
220 223
221 static SkPicture::AccelData::Key ComputeAccelDataKey(); 224 static SkPicture::AccelData::Key ComputeAccelDataKey();
222 225
223 typedef SkBitmapDevice INHERITED; 226 typedef SkBitmapDevice INHERITED;
224 }; 227 };
225 228
226 #endif 229 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698