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

Side by Side Diff: include/core/SkBitmapDevice.h

Issue 159723006: add peekPixels to canvas (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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 2013 Google Inc. 3 * Copyright 2013 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 #ifndef SkBitmapDevice_DEFINED 9 #ifndef SkBitmapDevice_DEFINED
10 #define SkBitmapDevice_DEFINED 10 #define SkBitmapDevice_DEFINED
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config config, 271 virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config config,
272 int width, int height, 272 int width, int height,
273 bool isOpaque, 273 bool isOpaque,
274 Usage usage) SK_OVERRIDE; 274 Usage usage) SK_OVERRIDE;
275 275
276 /** Causes any deferred drawing to the device to be completed. 276 /** Causes any deferred drawing to the device to be completed.
277 */ 277 */
278 virtual void flush() SK_OVERRIDE {} 278 virtual void flush() SK_OVERRIDE {}
279 279
280 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; 280 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE;
281 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE;
281 282
282 SkBitmap fBitmap; 283 SkBitmap fBitmap;
283 284
284 typedef SkBaseDevice INHERITED; 285 typedef SkBaseDevice INHERITED;
285 }; 286 };
286 287
287 #endif // SkBitmapDevice_DEFINED 288 #endif // SkBitmapDevice_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkBitmap.h ('k') | include/core/SkCanvas.h » ('j') | include/core/SkCanvas.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698