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

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

Issue 249373003: Revert of eliminate config param -- it was always self's config (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual ~SkGrPixelRef(); 49 virtual ~SkGrPixelRef();
50 50
51 // override from SkPixelRef 51 // override from SkPixelRef
52 virtual GrTexture* getTexture() SK_OVERRIDE; 52 virtual GrTexture* getTexture() SK_OVERRIDE;
53 53
54 SK_DECLARE_UNFLATTENABLE_OBJECT() 54 SK_DECLARE_UNFLATTENABLE_OBJECT()
55 55
56 protected: 56 protected:
57 // overrides from SkPixelRef 57 // overrides from SkPixelRef
58 virtual bool onReadPixels(SkBitmap* dst, const SkIRect* subset) SK_OVERRIDE; 58 virtual bool onReadPixels(SkBitmap* dst, const SkIRect* subset) SK_OVERRIDE;
59 virtual SkPixelRef* deepCopy(const SkIRect* subset) SK_OVERRIDE; 59 virtual SkPixelRef* deepCopy(SkBitmap::Config dstConfig, const SkIRect* subs et) SK_OVERRIDE;
60 60
61 private: 61 private:
62 GrSurface* fSurface; 62 GrSurface* fSurface;
63 bool fUnlock; // if true the pixel ref owns a texture cache lock on fSurface 63 bool fUnlock; // if true the pixel ref owns a texture cache lock on fSurface
64 64
65 typedef SkROLockPixelsPixelRef INHERITED; 65 typedef SkROLockPixelsPixelRef INHERITED;
66 }; 66 };
67 67
68 #endif 68 #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