Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3379)

Unified Diff: cc/layers/video_layer_impl.h

Issue 14199002: Send hardware video frames with mailboxes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ifdefed Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/layers/video_layer_impl.cc » ('j') | media/base/video_frame.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/video_layer_impl.h
diff --git a/cc/layers/video_layer_impl.h b/cc/layers/video_layer_impl.h
index b272f8f621accb063941e4079aaea26dfa248e12..72552ca48f282fe743e611eb65f3f83d6c2b45cf 100644
--- a/cc/layers/video_layer_impl.h
+++ b/cc/layers/video_layer_impl.h
@@ -5,6 +5,8 @@
#ifndef CC_LAYERS_VIDEO_LAYER_IMPL_H_
#define CC_LAYERS_VIDEO_LAYER_IMPL_H_
+#include <vector>
+
#include "cc/base/cc_export.h"
#include "cc/layers/layer_impl.h"
#include "cc/resources/video_resource_updater.h"
@@ -53,6 +55,10 @@ class CC_EXPORT VideoLayerImpl : public LayerImpl {
VideoFrameExternalResources::ResourceType frame_resource_type_;
std::vector<ResourceProvider::ResourceId> frame_resources_;
+ // TODO(danakj): Remove this when hardware frames come through a mailbox.
+ unsigned hardware_resource_;
+ TextureMailbox::ReleaseCallback hardware_release_callback_;
+
// TODO(danakj): Remove these, hide software path inside ResourceProvider and
// ExternalResource (aka TextureMailbox) classes.
std::vector<unsigned> software_resources_;
« no previous file with comments | « no previous file | cc/layers/video_layer_impl.cc » ('j') | media/base/video_frame.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698