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