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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // Create a solid color quad with transparent black and force no | 268 // Create a solid color quad with transparent black and force no |
269 // blending / no anti-aliasing. | 269 // blending / no anti-aliasing. |
270 gfx::Rect opaque_rect = quad_rect; | 270 gfx::Rect opaque_rect = quad_rect; |
271 solid_color_draw_quad->SetAll(shared_quad_state, | 271 solid_color_draw_quad->SetAll(shared_quad_state, |
272 quad_rect, | 272 quad_rect, |
273 opaque_rect, | 273 opaque_rect, |
274 visible_quad_rect, | 274 visible_quad_rect, |
275 false, | 275 false, |
276 SK_ColorTRANSPARENT, | 276 SK_ColorTRANSPARENT, |
277 true); | 277 true); |
278 quad_sink->Append(solid_color_draw_quad.PassAs<DrawQuad>(), | 278 quad_sink->Append(solid_color_draw_quad.PassAs<DrawQuad>()); |
279 append_quads_data); | |
280 break; | 279 break; |
281 } | 280 } |
282 #endif // defined(VIDEO_HOLE) | 281 #endif // defined(VIDEO_HOLE) |
283 case VideoFrameExternalResources::NONE: | 282 case VideoFrameExternalResources::NONE: |
284 NOTIMPLEMENTED(); | 283 NOTIMPLEMENTED(); |
285 break; | 284 break; |
286 } | 285 } |
287 } | 286 } |
288 | 287 |
289 void VideoLayerImpl::DidDraw(ResourceProvider* resource_provider) { | 288 void VideoLayerImpl::DidDraw(ResourceProvider* resource_provider) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 void VideoLayerImpl::SetProviderClientImpl( | 321 void VideoLayerImpl::SetProviderClientImpl( |
323 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl) { | 322 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl) { |
324 provider_client_impl_ = provider_client_impl; | 323 provider_client_impl_ = provider_client_impl; |
325 } | 324 } |
326 | 325 |
327 const char* VideoLayerImpl::LayerTypeAsString() const { | 326 const char* VideoLayerImpl::LayerTypeAsString() const { |
328 return "cc::VideoLayerImpl"; | 327 return "cc::VideoLayerImpl"; |
329 } | 328 } |
330 | 329 |
331 } // namespace cc | 330 } // namespace cc |
OLD | NEW |