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

Unified Diff: cc/resources/video_resource_updater.h

Issue 935383004: cc: Make VideoResourceUpdater use CopyToResource instead of SetPixels. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/resources/video_resource_updater.cc » ('j') | cc/resources/video_resource_updater.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/video_resource_updater.h
diff --git a/cc/resources/video_resource_updater.h b/cc/resources/video_resource_updater.h
index 622fe68d7c634829da03be8fea9350cb1a421598..9a6bf13c76f544260261ee264d04e942d3ec03f8 100644
--- a/cc/resources/video_resource_updater.h
+++ b/cc/resources/video_resource_updater.h
@@ -131,6 +131,9 @@ class CC_EXPORT VideoResourceUpdater
ContextProvider* context_provider_;
ResourceProvider* resource_provider_;
scoped_ptr<media::SkCanvasVideoRenderer> video_renderer_;
+ // TODO(danakj): Use std::array when we can.
ericrk 2015/02/19 19:57:41 std::array is compile-time fixed size. Maybe std:
danakj 2015/02/19 20:46:21 Oh! Hrm. I could just use vector now with some cas
+ scoped_ptr<uint8_t[]> upload_pixels_;
+ size_t upload_pixels_size_;
// Recycle resources so that we can reduce the number of allocations and
// data transfers.
« no previous file with comments | « no previous file | cc/resources/video_resource_updater.cc » ('j') | cc/resources/video_resource_updater.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698