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 "base/debug/trace_event.h" | 7 #include "base/trace_event/trace_event.h" |
8 #include "cc/base/math_util.h" | 8 #include "cc/base/math_util.h" |
9 #include "cc/layers/video_layer_impl.h" | 9 #include "cc/layers/video_layer_impl.h" |
10 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 | 13 |
14 // static | 14 // static |
15 scoped_refptr<VideoFrameProviderClientImpl> | 15 scoped_refptr<VideoFrameProviderClientImpl> |
16 VideoFrameProviderClientImpl::Create( | 16 VideoFrameProviderClientImpl::Create( |
17 VideoFrameProvider* provider) { | 17 VideoFrameProvider* provider) { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 stream_texture_matrix_ = gfx::Transform( | 86 stream_texture_matrix_ = gfx::Transform( |
87 matrix[0], matrix[4], matrix[8], matrix[12], | 87 matrix[0], matrix[4], matrix[8], matrix[12], |
88 matrix[1], matrix[5], matrix[9], matrix[13], | 88 matrix[1], matrix[5], matrix[9], matrix[13], |
89 matrix[2], matrix[6], matrix[10], matrix[14], | 89 matrix[2], matrix[6], matrix[10], matrix[14], |
90 matrix[3], matrix[7], matrix[11], matrix[15]); | 90 matrix[3], matrix[7], matrix[11], matrix[15]); |
91 if (active_video_layer_) | 91 if (active_video_layer_) |
92 active_video_layer_->SetNeedsRedraw(); | 92 active_video_layer_->SetNeedsRedraw(); |
93 } | 93 } |
94 | 94 |
95 } // namespace cc | 95 } // namespace cc |
OLD | NEW |