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

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

Issue 1817383002: switch surface to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkSurface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2010 The Android Open Source Project 2 * Copyright 2010 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkDevice_DEFINED 8 #ifndef SkDevice_DEFINED
9 #define SkDevice_DEFINED 9 #define SkDevice_DEFINED
10 10
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 * If the device does not recognize or support this filter, 289 * If the device does not recognize or support this filter,
290 * it just returns false and leaves result and offset unchanged. 290 * it just returns false and leaves result and offset unchanged.
291 */ 291 */
292 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, 292 virtual bool filterImage(const SkImageFilter*, const SkBitmap&,
293 const SkImageFilter::Context&, 293 const SkImageFilter::Context&,
294 SkBitmap* /*result*/, SkIPoint* /*offset*/) { 294 SkBitmap* /*result*/, SkIPoint* /*offset*/) {
295 return false; 295 return false;
296 } 296 }
297 297
298 protected: 298 protected:
299 virtual SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) { r eturn NULL; } 299 virtual sk_sp<SkSurface> makeSurface(const SkImageInfo&, const SkSurfaceProp s&);
300 virtual bool onPeekPixels(SkPixmap*) { return false; } 300 virtual bool onPeekPixels(SkPixmap*) { return false; }
301 301
302 /** 302 /**
303 * The caller is responsible for "pre-clipping" the dst. The impl can assum e that the dst 303 * The caller is responsible for "pre-clipping" the dst. The impl can assum e that the dst
304 * image at the specified x,y offset will fit within the device's bounds. 304 * image at the specified x,y offset will fit within the device's bounds.
305 * 305 *
306 * This is explicitly asserted in readPixels(), the public way to call this . 306 * This is explicitly asserted in readPixels(), the public way to call this .
307 */ 307 */
308 virtual bool onReadPixels(const SkImageInfo&, void*, size_t, int x, int y); 308 virtual bool onReadPixels(const SkImageInfo&, void*, size_t, int x, int y);
309 309
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 SkSurfaceProps fSurfaceProps; 415 SkSurfaceProps fSurfaceProps;
416 416
417 #ifdef SK_DEBUG 417 #ifdef SK_DEBUG
418 bool fAttachedToCanvas; 418 bool fAttachedToCanvas;
419 #endif 419 #endif
420 420
421 typedef SkRefCnt INHERITED; 421 typedef SkRefCnt INHERITED;
422 }; 422 };
423 423
424 #endif 424 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkSurface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698