summaryrefslogtreecommitdiffstats
path: root/cc/cc.gyp
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-17 01:24:16 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-17 01:24:16 +0000
commit9260757f9dd8de119450e6cc351dda15df17cf8d (patch)
tree1aa791088cd401d42e714c1b102635e7e4caf480 /cc/cc.gyp
parent0ceda8a5374cf90e636134835d41c3194c52b0bc (diff)
downloadchromium_src-9260757f9dd8de119450e6cc351dda15df17cf8d.zip
chromium_src-9260757f9dd8de119450e6cc351dda15df17cf8d.tar.gz
chromium_src-9260757f9dd8de119450e6cc351dda15df17cf8d.tar.bz2
cc: Move TextureMailbox::ReleaseCallback to SingleReleaseCallback.
This moves the release callback out of the TextureMailbox so that we can use it for other resource types than just texture mailboxes. While doing this, we make a SingleReleaseCallback class that is held in a scoped_ptr. This class DCHECKs that the callback is run before it is destroyed, and ensures clear ownership semantics as you must Pass() the callback around. No change in behaviour, covered by existing tests. R=piman BUG=263069 Review URL: https://chromiumcodereview.appspot.com/23648014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223500 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/cc.gyp')
-rw-r--r--cc/cc.gyp3
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/cc.gyp b/cc/cc.gyp
index b726635..00a0b8b 100644
--- a/cc/cc.gyp
+++ b/cc/cc.gyp
@@ -314,6 +314,7 @@
'resources/raster_mode.h',
'resources/raster_worker_pool.cc',
'resources/raster_worker_pool.h',
+ 'resources/release_callback.h',
'resources/resource.cc',
'resources/resource.h',
'resources/resource_pool.cc',
@@ -331,6 +332,8 @@
'resources/scoped_resource.h',
'resources/scoped_ui_resource.cc',
'resources/scoped_ui_resource.h',
+ 'resources/single_release_callback.cc',
+ 'resources/single_release_callback.h',
'resources/skpicture_content_layer_updater.cc',
'resources/skpicture_content_layer_updater.h',
'resources/sync_point_helper.cc',