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

Side by Side Diff: cc/layers/video_frame_provider_client_impl.cc

Issue 13445009: cc: Move video upload to VideoResourceUpdater. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: consume textures that were produced 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 | « cc/layers/io_surface_layer_impl.cc ('k') | cc/layers/video_layer_impl.h » ('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 #include "cc/layers/video_frame_provider_client_impl.h" 5 #include "cc/layers/video_frame_provider_client_impl.h"
6 6
7 #include "cc/base/math_util.h" 7 #include "cc/base/math_util.h"
8 #include "cc/layers/video_layer_impl.h" 8 #include "cc/layers/video_layer_impl.h"
9 #include "media/base/video_frame.h"
9 10
10 namespace cc { 11 namespace cc {
11 12
12 // static 13 // static
13 scoped_refptr<VideoFrameProviderClientImpl> 14 scoped_refptr<VideoFrameProviderClientImpl>
14 VideoFrameProviderClientImpl::Create( 15 VideoFrameProviderClientImpl::Create(
15 VideoFrameProvider* provider) { 16 VideoFrameProvider* provider) {
16 return make_scoped_refptr( 17 return make_scoped_refptr(
17 new VideoFrameProviderClientImpl(provider)); 18 new VideoFrameProviderClientImpl(provider));
18 } 19 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 stream_texture_matrix_ = gfx::Transform( 81 stream_texture_matrix_ = gfx::Transform(
81 matrix[0], matrix[4], matrix[8], matrix[12], 82 matrix[0], matrix[4], matrix[8], matrix[12],
82 matrix[1], matrix[5], matrix[9], matrix[13], 83 matrix[1], matrix[5], matrix[9], matrix[13],
83 matrix[2], matrix[6], matrix[10], matrix[14], 84 matrix[2], matrix[6], matrix[10], matrix[14],
84 matrix[3], matrix[7], matrix[11], matrix[15]); 85 matrix[3], matrix[7], matrix[11], matrix[15]);
85 if (active_video_layer_) 86 if (active_video_layer_)
86 active_video_layer_->SetNeedsRedraw(); 87 active_video_layer_->SetNeedsRedraw();
87 } 88 }
88 89
89 } // namespace cc 90 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/io_surface_layer_impl.cc ('k') | cc/layers/video_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698