From 9260757f9dd8de119450e6cc351dda15df17cf8d Mon Sep 17 00:00:00 2001 From: "danakj@chromium.org" Date: Tue, 17 Sep 2013 01:24:16 +0000 Subject: 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 --- cc/cc.gyp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cc/cc.gyp') 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', -- cgit v1.1