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

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

Issue 1826893002: Switch new SkImageFilter internal methods over to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Change method name to drawSpriteWithFilter 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 | « no previous file | include/core/SkImageFilter.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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 * and the caller may then decide to explicitly create a bitmapdevice, know ing that later 374 * and the caller may then decide to explicitly create a bitmapdevice, know ing that later
375 * it could not call drawDevice with it (but it could call drawSprite or dr awBitmap). 375 * it could not call drawDevice with it (but it could call drawSprite or dr awBitmap).
376 */ 376 */
377 virtual SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) { 377 virtual SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) {
378 return NULL; 378 return NULL;
379 } 379 }
380 380
381 /** 381 /**
382 * Calls through to drawSprite, processing the imagefilter. 382 * Calls through to drawSprite, processing the imagefilter.
383 */ 383 */
384 virtual void drawBitmapAsSpriteWithImageFilter(const SkDraw&, const SkBitmap &, 384 virtual void drawSpriteWithFilter(const SkDraw&, const SkBitmap&,
385 int x, int y, const SkPaint&) ; 385 int x, int y, const SkPaint&);
386 386
387 private: 387 private:
388 friend class SkCanvas; 388 friend class SkCanvas;
389 friend struct DeviceCM; //for setMatrixClip 389 friend struct DeviceCM; //for setMatrixClip
390 friend class SkDraw; 390 friend class SkDraw;
391 friend class SkDrawIter; 391 friend class SkDrawIter;
392 friend class SkDeviceFilteredPaint; 392 friend class SkDeviceFilteredPaint;
393 friend class SkImageFilter::DeviceProxy; 393 friend class SkImageFilter::DeviceProxy;
394 friend class SkNoPixelsBitmapDevice; 394 friend class SkNoPixelsBitmapDevice;
395 friend class SkSurface_Raster; 395 friend class SkSurface_Raster;
(...skipping 20 matching lines...) Expand all
416 SkSurfaceProps fSurfaceProps; 416 SkSurfaceProps fSurfaceProps;
417 417
418 #ifdef SK_DEBUG 418 #ifdef SK_DEBUG
419 bool fAttachedToCanvas; 419 bool fAttachedToCanvas;
420 #endif 420 #endif
421 421
422 typedef SkRefCnt INHERITED; 422 typedef SkRefCnt INHERITED;
423 }; 423 };
424 424
425 #endif 425 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698