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

Unified Diff: include/gpu/GrContext.h

Issue 2337803002: Don't copy image buffer when calculating size.
Patch Set: Making SkImage_Gpu always return false. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkImageCacherator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 67f6c93620029afbaf7822554457c7bd2caab039..9021346bd939f08bea529e1122c95edc566bc740 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -486,6 +486,9 @@ private:
* proxy does not access the 3D API (e.g. OpenGL) that backs the generating GrContext.
*/
class GrContextThreadSafeProxy : public SkRefCnt {
+public:
+ uint32_t uniqueID() const { return fContextUniqueID; }
+
private:
GrContextThreadSafeProxy(sk_sp<const GrCaps> caps, uint32_t uniqueID)
: fCaps(std::move(caps))
« no previous file with comments | « no previous file | src/core/SkImageCacherator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698