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

Side by Side Diff: include/gpu/SkGrPixelRef.h

Issue 791823003: Add sRGB texture support. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add in changes for copy_to_new_texture_pixelref Created 6 years 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 Google Inc. 2 * Copyright 2010 Google Inc.
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 SkGrPixelRef_DEFINED 8 #ifndef SkGrPixelRef_DEFINED
9 #define SkGrPixelRef_DEFINED 9 #define SkGrPixelRef_DEFINED
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 */ 45 */
46 SkGrPixelRef(const SkImageInfo&, GrSurface*); 46 SkGrPixelRef(const SkImageInfo&, GrSurface*);
47 virtual ~SkGrPixelRef(); 47 virtual ~SkGrPixelRef();
48 48
49 // override from SkPixelRef 49 // override from SkPixelRef
50 virtual GrTexture* getTexture() SK_OVERRIDE; 50 virtual GrTexture* getTexture() SK_OVERRIDE;
51 51
52 protected: 52 protected:
53 // overrides from SkPixelRef 53 // overrides from SkPixelRef
54 virtual bool onReadPixels(SkBitmap* dst, const SkIRect* subset) SK_OVERRIDE; 54 virtual bool onReadPixels(SkBitmap* dst, const SkIRect* subset) SK_OVERRIDE;
55 virtual SkPixelRef* deepCopy(SkColorType, const SkIRect* subset) SK_OVERRIDE ; 55 virtual SkPixelRef* deepCopy(SkColorType, SkColorProfileType,
56 const SkIRect* subset) SK_OVERRIDE;
56 57
57 private: 58 private:
58 GrSurface* fSurface; 59 GrSurface* fSurface;
59 typedef SkROLockPixelsPixelRef INHERITED; 60 typedef SkROLockPixelsPixelRef INHERITED;
60 }; 61 };
61 62
62 #endif 63 #endif
OLDNEW
« include/core/SkPixelRef.h ('K') | « include/gpu/SkGr.h ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698