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

Side by Side 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: Use the texture target in the hardware video frame 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/layers/video_layer_impl.cc » ('j') | cc/resources/video_resource_updater.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_LAYERS_VIDEO_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_VIDEO_LAYER_IMPL_H_
6 #define CC_LAYERS_VIDEO_LAYER_IMPL_H_ 6 #define CC_LAYERS_VIDEO_LAYER_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 virtual const char* LayerTypeAsString() const OVERRIDE; 48 virtual const char* LayerTypeAsString() const OVERRIDE;
49 49
50 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl_; 50 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl_;
51 51
52 scoped_refptr<media::VideoFrame> frame_; 52 scoped_refptr<media::VideoFrame> frame_;
53 53
54 scoped_ptr<VideoResourceUpdater> updater_; 54 scoped_ptr<VideoResourceUpdater> updater_;
55 VideoFrameExternalResources::ResourceType frame_resource_type_; 55 VideoFrameExternalResources::ResourceType frame_resource_type_;
56 std::vector<ResourceProvider::ResourceId> frame_resources_; 56 std::vector<ResourceProvider::ResourceId> frame_resources_;
57 57
58 // TODO(danakj): Remove this when hardware frames come through a mailbox.
59 unsigned hardware_resource_;
60 TextureMailbox::ReleaseCallback hardware_release_callback_;
61
62 // TODO(danakj): Remove these, hide software path inside ResourceProvider and 58 // TODO(danakj): Remove these, hide software path inside ResourceProvider and
63 // ExternalResource (aka TextureMailbox) classes. 59 // ExternalResource (aka TextureMailbox) classes.
64 std::vector<unsigned> software_resources_; 60 std::vector<unsigned> software_resources_;
65 TextureMailbox::ReleaseCallback software_release_callback_; 61 TextureMailbox::ReleaseCallback software_release_callback_;
66 62
67 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl); 63 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl);
68 }; 64 };
69 65
70 } // namespace cc 66 } // namespace cc
71 67
72 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_ 68 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/video_layer_impl.cc » ('j') | cc/resources/video_resource_updater.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698