summaryrefslogtreecommitdiffstats
path: root/cc/resource_provider.h
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-13 05:46:18 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-13 05:46:18 +0000
commitc0299d6b37a63f569517fb035eb5f9adc8f46621 (patch)
treebf3b29c61093f7188ec61a472c3b09bfbd6c18d5 /cc/resource_provider.h
parent95aed38c86334ff55cfa51547c7f1fba8007c31e (diff)
downloadchromium_src-c0299d6b37a63f569517fb035eb5f9adc8f46621.zip
chromium_src-c0299d6b37a63f569517fb035eb5f9adc8f46621.tar.gz
chromium_src-c0299d6b37a63f569517fb035eb5f9adc8f46621.tar.bz2
cc: Allow "pipelined" deletion of exported resources
This allows exported resources to be pre-emptively deleted, they actually get deleted when they get recycled. This allows layers to be deleted while their resources are still in the parent compositor. BUG=None Review URL: https://chromiumcodereview.appspot.com/11096035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161728 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resource_provider.h')
-rw-r--r--cc/resource_provider.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/resource_provider.h b/cc/resource_provider.h
index f515c11..e90c1f2 100644
--- a/cc/resource_provider.h
+++ b/cc/resource_provider.h
@@ -223,6 +223,7 @@ private:
bool lockedForWrite;
bool external;
bool exported;
+ bool markedForDeletion;
IntSize size;
GC3Denum format;
ResourceType type;
@@ -249,6 +250,7 @@ private:
bool transferResource(WebKit::WebGraphicsContext3D*, ResourceId, TransferableResource*);
void trimMailboxDeque();
+ void deleteResourceInternal(ResourceMap::iterator it);
CCGraphicsContext* m_context;
ResourceId m_nextId;