 Chromium Code Reviews
 Chromium Code Reviews Issue 23526070:
  Remove GSC usage from ExynosVideoDecodeAccelerator.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@git-svn
    
  
    Issue 23526070:
  Remove GSC usage from ExynosVideoDecodeAccelerator.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@git-svn| OLD | NEW | 
|---|---|
| 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 Loading... | |
| 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 transform( | 217 gfx::Transform scale; | 
| 
danakj
2013/11/13 23:27:19
I think the old code would be preferable.
This in
 
sheu
2013/11/13 23:37:34
Unfortunately, the two operations are not identica
 | |
| 218 provider_client_impl_->stream_texture_matrix()); | 218 scale.Scale(tex_width_scale, tex_height_scale); | 
| 219 transform.Scale(tex_width_scale, tex_height_scale); | |
| 220 scoped_ptr<StreamVideoDrawQuad> stream_video_quad = | 219 scoped_ptr<StreamVideoDrawQuad> stream_video_quad = | 
| 221 StreamVideoDrawQuad::Create(); | 220 StreamVideoDrawQuad::Create(); | 
| 222 stream_video_quad->SetNew(shared_quad_state, | 221 stream_video_quad->SetNew( | 
| 223 quad_rect, | 222 shared_quad_state, | 
| 224 opaque_rect, | 223 quad_rect, | 
| 225 frame_resources_[0], | 224 opaque_rect, | 
| 226 transform); | 225 frame_resources_[0], | 
| 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 Loading... | |
| 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 | 
| OLD | NEW |