aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrGpuResource.h
diff options
context:
space:
mode:
authorGravatar junov <junov@chromium.org>2014-12-11 10:32:32 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-11 10:32:32 -0800
commit436293a3308d58ce494d9667bd13428dd6e35236 (patch)
treee636736af232ccbbb5de691377c050b9a79d055f /include/gpu/GrGpuResource.h
parent2f37ae17eae3701eb205f5f524de3254f6d965e8 (diff)
Making GrGpuResource::release public for special case in Blink
Diffstat (limited to 'include/gpu/GrGpuResource.h')
-rw-r--r--include/gpu/GrGpuResource.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h
index 659b767616..4670d911a6 100644
--- a/include/gpu/GrGpuResource.h
+++ b/include/gpu/GrGpuResource.h
@@ -174,6 +174,16 @@ public:
inline CacheAccess cacheAccess();
inline const CacheAccess cacheAccess() const;
+ /**
+ * Removes references to objects in the underlying 3D API without freeing them.
+ * Called by CacheAccess.
+ * In general this method should not be called outside of skia. It was
+ * made by public for a special case where it needs to be called in Blink
+ * when a texture becomes unsafe to use after having been shared through
+ * a texture mailbox.
+ */
+ void abandon();
+
protected:
// This must be called by every GrGpuObject. It should be called once the object is fully
// initialized (i.e. not in a base class constructor).
@@ -211,12 +221,6 @@ private:
*/
void release();
- /**
- * Removes references to objects in the underlying 3D API without freeing them.
- * Called by CacheAccess.
- */
- void abandon();
-
virtual size_t onGpuMemorySize() const = 0;
// See comments in CacheAccess.