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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "cc/layers/video_frame_provider_client_impl.h" | 12 #include "cc/layers/video_frame_provider_client_impl.h" |
13 #include "cc/quads/io_surface_draw_quad.h" | |
14 #include "cc/quads/stream_video_draw_quad.h" | 13 #include "cc/quads/stream_video_draw_quad.h" |
15 #include "cc/quads/texture_draw_quad.h" | 14 #include "cc/quads/texture_draw_quad.h" |
16 #include "cc/quads/yuv_video_draw_quad.h" | 15 #include "cc/quads/yuv_video_draw_quad.h" |
17 #include "cc/resources/resource_provider.h" | 16 #include "cc/resources/resource_provider.h" |
18 #include "cc/resources/single_release_callback_impl.h" | 17 #include "cc/resources/single_release_callback_impl.h" |
19 #include "cc/trees/layer_tree_impl.h" | 18 #include "cc/trees/layer_tree_impl.h" |
20 #include "cc/trees/occlusion.h" | 19 #include "cc/trees/occlusion.h" |
21 #include "cc/trees/task_runner_provider.h" | 20 #include "cc/trees/task_runner_provider.h" |
22 #include "media/base/video_frame.h" | 21 #include "media/base/video_frame.h" |
23 | 22 |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 void VideoLayerImpl::SetNeedsRedraw() { | 404 void VideoLayerImpl::SetNeedsRedraw() { |
406 SetUpdateRect(gfx::UnionRects(update_rect(), gfx::Rect(bounds()))); | 405 SetUpdateRect(gfx::UnionRects(update_rect(), gfx::Rect(bounds()))); |
407 layer_tree_impl()->SetNeedsRedraw(); | 406 layer_tree_impl()->SetNeedsRedraw(); |
408 } | 407 } |
409 | 408 |
410 const char* VideoLayerImpl::LayerTypeAsString() const { | 409 const char* VideoLayerImpl::LayerTypeAsString() const { |
411 return "cc::VideoLayerImpl"; | 410 return "cc::VideoLayerImpl"; |
412 } | 411 } |
413 | 412 |
414 } // namespace cc | 413 } // namespace cc |
OLD | NEW |