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

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

Issue 1576983002: Make SkBitmap::CopyTo respect requested dst color type when bitmap is texture backed. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix size_t warnings Created 4 years, 11 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/SkPixelRef.h ('k') | src/core/SkBitmap.cpp » ('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 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 * Constructs a pixel ref around a GrSurface. 42 * Constructs a pixel ref around a GrSurface.
43 */ 43 */
44 SkGrPixelRef(const SkImageInfo&, GrSurface*); 44 SkGrPixelRef(const SkImageInfo&, GrSurface*);
45 virtual ~SkGrPixelRef(); 45 virtual ~SkGrPixelRef();
46 46
47 // override from SkPixelRef 47 // override from SkPixelRef
48 GrTexture* getTexture() override; 48 GrTexture* getTexture() override;
49 49
50 protected: 50 protected:
51 // overrides from SkPixelRef 51 // overrides from SkPixelRef
52 bool onReadPixels(SkBitmap* dst, const SkIRect* subset) override; 52 bool onReadPixels(SkBitmap* dst, SkColorType, const SkIRect* subset) overrid e;
53 SkPixelRef* deepCopy(SkColorType, SkColorProfileType, 53 SkPixelRef* deepCopy(SkColorType, SkColorProfileType,
54 const SkIRect* subset) override; 54 const SkIRect* subset) override;
55 void onNotifyPixelsChanged() override; 55 void onNotifyPixelsChanged() override;
56 56
57 private: 57 private:
58 GrSurface* fSurface; 58 GrSurface* fSurface;
59 typedef SkROLockPixelsPixelRef INHERITED; 59 typedef SkROLockPixelsPixelRef INHERITED;
60 }; 60 };
61 61
62 #endif 62 #endif
OLDNEW
« no previous file with comments | « include/core/SkPixelRef.h ('k') | src/core/SkBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698