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

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

Issue 68713007: Revert 235128 "Remove GSC usage from ExynosVideoDecodeAccelerator." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1710/src/
Patch Set: Created 7 years, 1 month 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 | « no previous file | content/common/gpu/media/exynos_video_decode_accelerator.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_layer_impl.h" 5 #include "cc/layers/video_layer_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "cc/layers/quad_sink.h" 9 #include "cc/layers/quad_sink.h"
10 #include "cc/layers/video_frame_provider_client_impl.h" 10 #include "cc/layers/video_frame_provider_client_impl.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 SK_ColorTRANSPARENT, 207 SK_ColorTRANSPARENT,
208 opacity, 208 opacity,
209 flipped); 209 flipped);
210 quad_sink->Append(texture_quad.PassAs<DrawQuad>(), append_quads_data); 210 quad_sink->Append(texture_quad.PassAs<DrawQuad>(), append_quads_data);
211 break; 211 break;
212 } 212 }
213 case VideoFrameExternalResources::STREAM_TEXTURE_RESOURCE: { 213 case VideoFrameExternalResources::STREAM_TEXTURE_RESOURCE: {
214 DCHECK_EQ(frame_resources_.size(), 1u); 214 DCHECK_EQ(frame_resources_.size(), 1u);
215 if (frame_resources_.size() < 1u) 215 if (frame_resources_.size() < 1u)
216 break; 216 break;
217 gfx::Transform scale; 217 gfx::Transform transform(
218 scale.Scale(tex_width_scale, tex_height_scale); 218 provider_client_impl_->stream_texture_matrix());
219 transform.Scale(tex_width_scale, tex_height_scale);
219 scoped_ptr<StreamVideoDrawQuad> stream_video_quad = 220 scoped_ptr<StreamVideoDrawQuad> stream_video_quad =
220 StreamVideoDrawQuad::Create(); 221 StreamVideoDrawQuad::Create();
221 stream_video_quad->SetNew( 222 stream_video_quad->SetNew(shared_quad_state,
222 shared_quad_state, 223 quad_rect,
223 quad_rect, 224 opaque_rect,
224 opaque_rect, 225 frame_resources_[0],
225 frame_resources_[0], 226 transform);
226 scale * provider_client_impl_->stream_texture_matrix());
227 quad_sink->Append(stream_video_quad.PassAs<DrawQuad>(), 227 quad_sink->Append(stream_video_quad.PassAs<DrawQuad>(),
228 append_quads_data); 228 append_quads_data);
229 break; 229 break;
230 } 230 }
231 case VideoFrameExternalResources::IO_SURFACE: { 231 case VideoFrameExternalResources::IO_SURFACE: {
232 DCHECK_EQ(frame_resources_.size(), 1u); 232 DCHECK_EQ(frame_resources_.size(), 1u);
233 if (frame_resources_.size() < 1u) 233 if (frame_resources_.size() < 1u)
234 break; 234 break;
235 gfx::Size visible_size(visible_rect.width(), visible_rect.height()); 235 gfx::Size visible_size(visible_rect.width(), visible_rect.height());
236 scoped_ptr<IOSurfaceDrawQuad> io_surface_quad = 236 scoped_ptr<IOSurfaceDrawQuad> io_surface_quad =
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 void VideoLayerImpl::SetProviderClientImpl( 309 void VideoLayerImpl::SetProviderClientImpl(
310 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl) { 310 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl) {
311 provider_client_impl_ = provider_client_impl; 311 provider_client_impl_ = provider_client_impl;
312 } 312 }
313 313
314 const char* VideoLayerImpl::LayerTypeAsString() const { 314 const char* VideoLayerImpl::LayerTypeAsString() const {
315 return "cc::VideoLayerImpl"; 315 return "cc::VideoLayerImpl";
316 } 316 }
317 317
318 } // namespace cc 318 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/media/exynos_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698