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

Side by Side Diff: cc/resources/video_resource_updater.h

Issue 110683002: Split the hole punching logic from GOOGLE_TV ifdef to VIDEO_HOLE (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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 | « cc/layers/video_layer_impl.cc ('k') | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ 5 #ifndef CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_
6 #define CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ 6 #define CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 19 matching lines...) Expand all
30 public: 30 public:
31 // Specifies what type of data is contained in the mailboxes, as well as how 31 // Specifies what type of data is contained in the mailboxes, as well as how
32 // many mailboxes will be present. 32 // many mailboxes will be present.
33 enum ResourceType { 33 enum ResourceType {
34 NONE, 34 NONE,
35 YUV_RESOURCE, 35 YUV_RESOURCE,
36 RGB_RESOURCE, 36 RGB_RESOURCE,
37 STREAM_TEXTURE_RESOURCE, 37 STREAM_TEXTURE_RESOURCE,
38 IO_SURFACE, 38 IO_SURFACE,
39 39
40 #if defined(GOOGLE_TV) 40 #if defined(VIDEO_HOLE)
41 // TODO(danakj): Implement this with a solid color layer instead of a video 41 // TODO(danakj): Implement this with a solid color layer instead of a video
42 // frame and video layer. 42 // frame and video layer.
43 HOLE, 43 HOLE,
44 #endif 44 #endif // defined(VIDEO_HOLE)
45 45
46 // TODO(danakj): Remove this and abstract TextureMailbox into 46 // TODO(danakj): Remove this and abstract TextureMailbox into
47 // "ExternalResource" that can hold a hardware or software backing. 47 // "ExternalResource" that can hold a hardware or software backing.
48 SOFTWARE_RESOURCE 48 SOFTWARE_RESOURCE
49 }; 49 };
50 50
51 ResourceType type; 51 ResourceType type;
52 std::vector<TextureMailbox> mailboxes; 52 std::vector<TextureMailbox> mailboxes;
53 std::vector<ReleaseCallback> release_callbacks; 53 std::vector<ReleaseCallback> release_callbacks;
54 54
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 std::vector<unsigned> all_resources_; 114 std::vector<unsigned> all_resources_;
115 std::vector<PlaneResource> recycled_resources_; 115 std::vector<PlaneResource> recycled_resources_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater); 117 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater);
118 }; 118 };
119 119
120 } // namespace cc 120 } // namespace cc
121 121
122 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ 122 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_
OLDNEW
« no previous file with comments | « cc/layers/video_layer_impl.cc ('k') | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698