OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |