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/video_frame_provider_client_impl.h" | 9 #include "cc/layers/video_frame_provider_client_impl.h" |
10 #include "cc/quads/io_surface_draw_quad.h" | 10 #include "cc/quads/io_surface_draw_quad.h" |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 frame_ = nullptr; | 356 frame_ = nullptr; |
357 | 357 |
358 provider_client_impl_->ReleaseLock(); | 358 provider_client_impl_->ReleaseLock(); |
359 } | 359 } |
360 | 360 |
361 void VideoLayerImpl::ReleaseResources() { | 361 void VideoLayerImpl::ReleaseResources() { |
362 updater_ = nullptr; | 362 updater_ = nullptr; |
363 } | 363 } |
364 | 364 |
365 void VideoLayerImpl::SetNeedsRedraw() { | 365 void VideoLayerImpl::SetNeedsRedraw() { |
366 SetUpdateRect(gfx::UnionRects(update_rect(), gfx::RectF(bounds()))); | 366 SetUpdateRect(gfx::UnionRects(update_rect(), gfx::Rect(bounds()))); |
367 layer_tree_impl()->SetNeedsRedraw(); | 367 layer_tree_impl()->SetNeedsRedraw(); |
368 } | 368 } |
369 | 369 |
370 void VideoLayerImpl::SetProviderClientImpl( | 370 void VideoLayerImpl::SetProviderClientImpl( |
371 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl) { | 371 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl) { |
372 provider_client_impl_ = provider_client_impl; | 372 provider_client_impl_ = provider_client_impl; |
373 } | 373 } |
374 | 374 |
375 const char* VideoLayerImpl::LayerTypeAsString() const { | 375 const char* VideoLayerImpl::LayerTypeAsString() const { |
376 return "cc::VideoLayerImpl"; | 376 return "cc::VideoLayerImpl"; |
377 } | 377 } |
378 | 378 |
379 } // namespace cc | 379 } // namespace cc |
OLD | NEW |