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

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

Issue 1686203002: Skia Filter Quality and Scaling Metrics (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: feedback Created 4 years, 8 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/SkFilterQuality.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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 virtual SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) { 380 virtual SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) {
381 return NULL; 381 return NULL;
382 } 382 }
383 383
384 /** 384 /**
385 * Calls through to drawSprite, processing the imagefilter. 385 * Calls through to drawSprite, processing the imagefilter.
386 */ 386 */
387 virtual void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, 387 virtual void drawSpriteWithFilter(const SkDraw&, const SkBitmap&,
388 int x, int y, const SkPaint&); 388 int x, int y, const SkPaint&);
389 389
390 // A helper function used by derived classes to log the scale factor of a bi tmap or image draw.
391 static void LogDrawScaleFactor(const SkMatrix&, SkFilterQuality);
392
390 private: 393 private:
391 friend class SkCanvas; 394 friend class SkCanvas;
392 friend struct DeviceCM; //for setMatrixClip 395 friend struct DeviceCM; //for setMatrixClip
393 friend class SkDraw; 396 friend class SkDraw;
394 friend class SkDrawIter; 397 friend class SkDrawIter;
395 friend class SkDeviceFilteredPaint; 398 friend class SkDeviceFilteredPaint;
396 friend class SkImageFilter::DeviceProxy; 399 friend class SkImageFilter::DeviceProxy;
397 friend class SkNoPixelsBitmapDevice; 400 friend class SkNoPixelsBitmapDevice;
398 friend class SkSurface_Raster; 401 friend class SkSurface_Raster;
399 402
(...skipping 19 matching lines...) Expand all
419 SkSurfaceProps fSurfaceProps; 422 SkSurfaceProps fSurfaceProps;
420 423
421 #ifdef SK_DEBUG 424 #ifdef SK_DEBUG
422 bool fAttachedToCanvas; 425 bool fAttachedToCanvas;
423 #endif 426 #endif
424 427
425 typedef SkRefCnt INHERITED; 428 typedef SkRefCnt INHERITED;
426 }; 429 };
427 430
428 #endif 431 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkFilterQuality.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698