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

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

Issue 1177843007: Invalidate GrTexture mipmap on content change notification (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: typo fix Created 5 years, 6 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/SkPixelRef.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 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 GrTexture* getTexture() override; 50 GrTexture* getTexture() override;
51 51
52 protected: 52 protected:
53 // overrides from SkPixelRef 53 // overrides from SkPixelRef
54 bool onReadPixels(SkBitmap* dst, const SkIRect* subset) override; 54 bool onReadPixels(SkBitmap* dst, const SkIRect* subset) override;
55 virtual SkPixelRef* deepCopy(SkColorType, SkColorProfileType, 55 SkPixelRef* deepCopy(SkColorType, SkColorProfileType,
56 const SkIRect* subset) override; 56 const SkIRect* subset) override;
57 void onNotifyPixelsChanged() override;
57 58
58 private: 59 private:
59 GrSurface* fSurface; 60 GrSurface* fSurface;
60 typedef SkROLockPixelsPixelRef INHERITED; 61 typedef SkROLockPixelsPixelRef INHERITED;
61 }; 62 };
62 63
63 #endif 64 #endif
OLDNEW
« no previous file with comments | « include/core/SkPixelRef.h ('k') | src/core/SkPixelRef.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698