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

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

Issue 1845283003: Gamma-correctness pushed into Skia, top-down. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove helper function for old pixel-config method of enabling decode 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
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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
396 friend class GrLayerHoister; // for surfaceProps
bsalomon 2016/04/05 13:24:00 Wonder why the getter isn't public. Maybe it could
Brian Osman 2016/04/05 15:36:41 Acknowledged.
396 397
397 // used to change the backend's pixels (and possibly config/rowbytes) 398 // used to change the backend's pixels (and possibly config/rowbytes)
398 // but cannot change the width/height, so there should be no change to 399 // but cannot change the width/height, so there should be no change to
399 // any clip information. 400 // any clip information.
400 // TODO: move to SkBitmapDevice 401 // TODO: move to SkBitmapDevice
401 virtual void replaceBitmapBackendForRasterSurface(const SkBitmap&) {} 402 virtual void replaceBitmapBackendForRasterSurface(const SkBitmap&) {}
402 403
403 virtual bool forceConservativeRasterClip() const { return false; } 404 virtual bool forceConservativeRasterClip() const { return false; }
404 405
405 // just called by SkCanvas when built as a layer 406 // just called by SkCanvas when built as a layer
(...skipping 10 matching lines...) Expand all
416 SkSurfaceProps fSurfaceProps; 417 SkSurfaceProps fSurfaceProps;
417 418
418 #ifdef SK_DEBUG 419 #ifdef SK_DEBUG
419 bool fAttachedToCanvas; 420 bool fAttachedToCanvas;
420 #endif 421 #endif
421 422
422 typedef SkRefCnt INHERITED; 423 typedef SkRefCnt INHERITED;
423 }; 424 };
424 425
425 #endif 426 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698