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

Side by Side Diff: src/lazy/SkDiscardablePixelRef.h

Issue 1372593002: SkInstallDiscardablePixelRef is deprecated, enforce that (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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 | « src/core/SkPictureShader.cpp ('k') | src/lazy/SkDiscardablePixelRef.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 2013 Google Inc. 2 * Copyright 2013 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 SkDiscardablePixelRef_DEFINED 8 #ifndef SkDiscardablePixelRef_DEFINED
9 #define SkDiscardablePixelRef_DEFINED 9 #define SkDiscardablePixelRef_DEFINED
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 size_t rowBytes[3], 59 size_t rowBytes[3],
60 SkYUVColorSpace* colorSpace) override { 60 SkYUVColorSpace* colorSpace) override {
61 // If the image was already decoded with lockPixels(), favor not 61 // If the image was already decoded with lockPixels(), favor not
62 // re-decoding to YUV8 planes. 62 // re-decoding to YUV8 planes.
63 if (fDiscardableMemory) { 63 if (fDiscardableMemory) {
64 return false; 64 return false;
65 } 65 }
66 return fGenerator->getYUV8Planes(sizes, planes, rowBytes, colorSpace); 66 return fGenerator->getYUV8Planes(sizes, planes, rowBytes, colorSpace);
67 } 67 }
68 68
69 friend bool SkInstallDiscardablePixelRef(SkImageGenerator*, const SkIRect*, SkBitmap*, 69 friend bool SkDEPRECATED_InstallDiscardablePixelRef(SkImageGenerator*, const SkIRect*, SkBitmap*,
70 SkDiscardableMemory::Factory*); 70 SkDiscardableMemory::Factory*);
71 71
72 typedef SkPixelRef INHERITED; 72 typedef SkPixelRef INHERITED;
73 }; 73 };
74 74
75 #endif // SkDiscardablePixelRef_DEFINED 75 #endif // SkDiscardablePixelRef_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkPictureShader.cpp ('k') | src/lazy/SkDiscardablePixelRef.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698