Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: content/common/gpu/media/avda_codec_image.h

Issue 1513283002: Add support to send optimal format as part of ScheduleOverlayPlane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update cmd_buffer_functions Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef CONTENT_COMMON_GPU_MEDIA_AVDA_CODEC_IMAGE_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_AVDA_CODEC_IMAGE_H_
6 #define CONTENT_COMMON_GPU_MEDIA_AVDA_CODEC_IMAGE_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_AVDA_CODEC_IMAGE_H_
7 7
8 #include "content/common/gpu/media/avda_shared_state.h" 8 #include "content/common/gpu/media/avda_shared_state.h"
9 #include "ui/gl/gl_image.h" 9 #include "ui/gl/gl_image.h"
10 10
(...skipping 18 matching lines...) Expand all
29 unsigned GetInternalFormat() override; 29 unsigned GetInternalFormat() override;
30 bool BindTexImage(unsigned target) override; 30 bool BindTexImage(unsigned target) override;
31 void ReleaseTexImage(unsigned target) override; 31 void ReleaseTexImage(unsigned target) override;
32 bool CopyTexImage(unsigned target) override; 32 bool CopyTexImage(unsigned target) override;
33 bool CopyTexSubImage(unsigned target, 33 bool CopyTexSubImage(unsigned target,
34 const gfx::Point& offset, 34 const gfx::Point& offset,
35 const gfx::Rect& rect) override; 35 const gfx::Rect& rect) override;
36 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 36 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
37 int z_order, 37 int z_order,
38 gfx::OverlayTransform transform, 38 gfx::OverlayTransform transform,
39 gfx::BufferFormat storage_format,
39 const gfx::Rect& bounds_rect, 40 const gfx::Rect& bounds_rect,
40 const gfx::RectF& crop_rect) override; 41 const gfx::RectF& crop_rect,
42 bool handle_scaling) override;
41 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 43 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
42 uint64_t process_tracing_id, 44 uint64_t process_tracing_id,
43 const std::string& dump_name) override; 45 const std::string& dump_name) override;
44 46
45 public: 47 public:
46 // Decoded buffer index that has the image for us to display. 48 // Decoded buffer index that has the image for us to display.
47 void SetMediaCodecBufferIndex(int buffer_index); 49 void SetMediaCodecBufferIndex(int buffer_index);
48 50
49 // Return the codec buffer that we will return to the codec, or 51 // Return the codec buffer that we will return to the codec, or
50 // <0 if there is no such buffer. 52 // <0 if there is no such buffer.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 103
102 // Texture matrix of the front buffer of the surface texture. 104 // Texture matrix of the front buffer of the surface texture.
103 float gl_matrix_[16]; 105 float gl_matrix_[16];
104 106
105 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage); 107 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage);
106 }; 108 };
107 109
108 } // namespace content 110 } // namespace content
109 111
110 #endif // CONTENT_COMMON_GPU_MEDIA_AVDA_CODEC_IMAGE_H_ 112 #endif // CONTENT_COMMON_GPU_MEDIA_AVDA_CODEC_IMAGE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface_overlay_mac.mm ('k') | content/common/gpu/media/avda_codec_image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698