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

Unified Diff: cc/layers/video_layer_impl.h

Issue 1142343008: cc: Rework overlays to not use the ResourceProvider and pass texture size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: cc/layers/video_layer_impl.h
diff --git a/cc/layers/video_layer_impl.h b/cc/layers/video_layer_impl.h
index 5b3d9550e27df49c2209ed634bbe07eb3b89da3e..5570fb8d82adf6c0d38fefcd21d277c933550d69 100644
--- a/cc/layers/video_layer_impl.h
+++ b/cc/layers/video_layer_impl.h
@@ -62,7 +62,13 @@ class CC_EXPORT VideoLayerImpl : public LayerImpl {
scoped_ptr<VideoResourceUpdater> updater_;
VideoFrameExternalResources::ResourceType frame_resource_type_;
- std::vector<ResourceId> frame_resources_;
+ struct FrameResource {
+ FrameResource(ResourceId id, gfx::Size size, bool allow_overlay);
danakj 2015/05/29 20:04:14 you could inline this constructor, the type is sim
achaulk 2015/06/01 15:43:10 Done.
+ ResourceId id;
+ gfx::Size size;
danakj 2015/05/29 20:04:14 size_in_pixels?
achaulk 2015/06/01 15:43:10 Done.
+ bool allow_overlay;
+ };
+ std::vector<FrameResource> frame_resources_;
// TODO(danakj): Remove these, hide software path inside ResourceProvider and
// ExternalResource (aka TextureMailbox) classes.

Powered by Google App Engine
This is Rietveld 408576698