| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/common/gpu/media/avda_codec_image.h" | 5 #include "content/common/gpu/media/avda_codec_image.h" |
| 6 | 6 |
| 7 #include "content/common/gpu/media/avda_shared_state.h" | 7 #include "content/common/gpu/media/avda_shared_state.h" |
| 8 #include "gpu/command_buffer/service/context_group.h" | 8 #include "gpu/command_buffer/service/context_group.h" |
| 9 #include "gpu/command_buffer/service/context_state.h" | 9 #include "gpu/command_buffer/service/context_state.h" |
| 10 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 10 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 bool AVDACodecImage::CopyTexSubImage(unsigned target, | 106 bool AVDACodecImage::CopyTexSubImage(unsigned target, |
| 107 const gfx::Point& offset, | 107 const gfx::Point& offset, |
| 108 const gfx::Rect& rect) { | 108 const gfx::Rect& rect) { |
| 109 return false; | 109 return false; |
| 110 } | 110 } |
| 111 | 111 |
| 112 bool AVDACodecImage::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 112 bool AVDACodecImage::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 113 int z_order, | 113 int z_order, |
| 114 gfx::OverlayTransform transform, | 114 gfx::OverlayTransform transform, |
| 115 gfx::BufferFormat storage_format, |
| 115 const gfx::Rect& bounds_rect, | 116 const gfx::Rect& bounds_rect, |
| 116 const gfx::RectF& crop_rect) { | 117 const gfx::RectF& crop_rect, |
| 118 bool handle_scaling) { |
| 117 return false; | 119 return false; |
| 118 } | 120 } |
| 119 | 121 |
| 120 void AVDACodecImage::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, | 122 void AVDACodecImage::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
| 121 uint64_t process_tracing_id, | 123 uint64_t process_tracing_id, |
| 122 const std::string& dump_name) {} | 124 const std::string& dump_name) {} |
| 123 | 125 |
| 124 bool AVDACodecImage::UpdateSurfaceTexture() { | 126 bool AVDACodecImage::UpdateSurfaceTexture() { |
| 125 // Render via the media codec if needed. | 127 // Render via the media codec if needed. |
| 126 if (codec_buffer_index_ > -1 && media_codec_) { | 128 if (codec_buffer_index_ > -1 && media_codec_) { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 // Only try once. | 215 // Only try once. |
| 214 need_shader_info_ = false; | 216 need_shader_info_ = false; |
| 215 } | 217 } |
| 216 | 218 |
| 217 if (texmatrix_uniform_location_ >= 0) { | 219 if (texmatrix_uniform_location_ >= 0) { |
| 218 glUniformMatrix4fv(texmatrix_uniform_location_, 1, false, gl_matrix_); | 220 glUniformMatrix4fv(texmatrix_uniform_location_, 1, false, gl_matrix_); |
| 219 } | 221 } |
| 220 } | 222 } |
| 221 | 223 |
| 222 } // namespace content | 224 } // namespace content |
| OLD | NEW |