| Index: cc/resources/video_resource_updater.h
|
| diff --git a/cc/resources/video_resource_updater.h b/cc/resources/video_resource_updater.h
|
| index b09a19bbc6e37306fa473172f569eb0b754bd656..e9b924be531513eabaa21b26b1edb1b04e751d7c 100644
|
| --- a/cc/resources/video_resource_updater.h
|
| +++ b/cc/resources/video_resource_updater.h
|
| @@ -12,7 +12,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "cc/base/cc_export.h"
|
| -#include "cc/resources/release_callback.h"
|
| +#include "cc/resources/release_callback_impl.h"
|
| #include "cc/resources/resource_format.h"
|
| #include "cc/resources/texture_mailbox.h"
|
| #include "ui/gfx/size.h"
|
| @@ -50,11 +50,11 @@ class CC_EXPORT VideoFrameExternalResources {
|
|
|
| ResourceType type;
|
| std::vector<TextureMailbox> mailboxes;
|
| - std::vector<ReleaseCallback> release_callbacks;
|
| + std::vector<ReleaseCallbackImpl> release_callbacks;
|
|
|
| // TODO(danakj): Remove these too.
|
| std::vector<unsigned> software_resources;
|
| - ReleaseCallback software_release_callback;
|
| + ReleaseCallbackImpl software_release_callback;
|
|
|
| VideoFrameExternalResources();
|
| ~VideoFrameExternalResources();
|
| @@ -105,11 +105,13 @@ class CC_EXPORT VideoResourceUpdater
|
| static void RecycleResource(base::WeakPtr<VideoResourceUpdater> updater,
|
| RecycleResourceData data,
|
| uint32 sync_point,
|
| - bool lost_resource);
|
| + bool lost_resource,
|
| + BlockingTaskRunner* main_thread_task_runner);
|
| static void ReturnTexture(base::WeakPtr<VideoResourceUpdater> updater,
|
| const scoped_refptr<media::VideoFrame>& video_frame,
|
| uint32 sync_point,
|
| - bool lost_resource);
|
| + bool lost_resource,
|
| + BlockingTaskRunner* main_thread_task_runner);
|
|
|
| ContextProvider* context_provider_;
|
| ResourceProvider* resource_provider_;
|
|
|