| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 } | 157 } |
| 158 | 158 |
| 159 SharedQuadState* shared_quad_state = | 159 SharedQuadState* shared_quad_state = |
| 160 render_pass->CreateAndAppendSharedQuadState(); | 160 render_pass->CreateAndAppendSharedQuadState(); |
| 161 shared_quad_state->SetAll(transform, | 161 shared_quad_state->SetAll(transform, |
| 162 rotated_size, | 162 rotated_size, |
| 163 visible_content_rect(), | 163 visible_content_rect(), |
| 164 clip_rect(), | 164 clip_rect(), |
| 165 is_clipped(), | 165 is_clipped(), |
| 166 draw_opacity(), | 166 draw_opacity(), |
| 167 blend_mode(), | 167 draw_properties().blend_mode, |
| 168 sorting_context_id()); | 168 sorting_context_id()); |
| 169 | 169 |
| 170 AppendDebugBorderQuad( | 170 AppendDebugBorderQuad( |
| 171 render_pass, rotated_size, shared_quad_state, append_quads_data); | 171 render_pass, rotated_size, shared_quad_state, append_quads_data); |
| 172 | 172 |
| 173 gfx::Rect quad_rect(rotated_size); | 173 gfx::Rect quad_rect(rotated_size); |
| 174 gfx::Rect opaque_rect(contents_opaque() ? quad_rect : gfx::Rect()); | 174 gfx::Rect opaque_rect(contents_opaque() ? quad_rect : gfx::Rect()); |
| 175 gfx::Rect visible_rect = frame_->visible_rect(); | 175 gfx::Rect visible_rect = frame_->visible_rect(); |
| 176 gfx::Size coded_size = frame_->coded_size(); | 176 gfx::Size coded_size = frame_->coded_size(); |
| 177 | 177 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 void VideoLayerImpl::SetProviderClientImpl( | 365 void VideoLayerImpl::SetProviderClientImpl( |
| 366 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl) { | 366 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl) { |
| 367 provider_client_impl_ = provider_client_impl; | 367 provider_client_impl_ = provider_client_impl; |
| 368 } | 368 } |
| 369 | 369 |
| 370 const char* VideoLayerImpl::LayerTypeAsString() const { | 370 const char* VideoLayerImpl::LayerTypeAsString() const { |
| 371 return "cc::VideoLayerImpl"; | 371 return "cc::VideoLayerImpl"; |
| 372 } | 372 } |
| 373 | 373 |
| 374 } // namespace cc | 374 } // namespace cc |
| OLD | NEW |