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

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

Issue 2109803003: Add support for EXT_image_flush_external extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add support for EXT_image_flush_external extension Created 4 years, 5 months 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 MEDIA_GPU_AVDA_CODEC_IMAGE_H_ 5 #ifndef MEDIA_GPU_AVDA_CODEC_IMAGE_H_
6 #define MEDIA_GPU_AVDA_CODEC_IMAGE_H_ 6 #define MEDIA_GPU_AVDA_CODEC_IMAGE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 int z_order, 45 int z_order,
46 gfx::OverlayTransform transform, 46 gfx::OverlayTransform transform,
47 const gfx::Rect& bounds_rect, 47 const gfx::Rect& bounds_rect,
48 const gfx::RectF& crop_rect) override; 48 const gfx::RectF& crop_rect) override;
49 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 49 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
50 uint64_t process_tracing_id, 50 uint64_t process_tracing_id,
51 const std::string& dump_name) override; 51 const std::string& dump_name) override;
52 // gpu::gles2::GLStreamTextureMatrix implementation 52 // gpu::gles2::GLStreamTextureMatrix implementation
53 void GetTextureMatrix(float xform[16]) override; 53 void GetTextureMatrix(float xform[16]) override;
54 54
55 void Flush() override {}
56
55 enum class UpdateMode { 57 enum class UpdateMode {
56 // Discards the codec buffer, no UpdateTexImage(). 58 // Discards the codec buffer, no UpdateTexImage().
57 DISCARD_CODEC_BUFFER, 59 DISCARD_CODEC_BUFFER,
58 60
59 // Renders to back buffer, no UpdateTexImage(); can only be used with a 61 // Renders to back buffer, no UpdateTexImage(); can only be used with a
60 // valid |surface_texture_|. 62 // valid |surface_texture_|.
61 RENDER_TO_BACK_BUFFER, 63 RENDER_TO_BACK_BUFFER,
62 64
63 // Renders to the back buffer. When used with a SurfaceView, promotion to 65 // Renders to the back buffer. When used with a SurfaceView, promotion to
64 // the front buffer is automatic. When using a |surface_texture_|, 66 // the front buffer is automatic. When using a |surface_texture_|,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 157
156 // The picture buffer id attached to this image. 158 // The picture buffer id attached to this image.
157 int picture_buffer_id_; 159 int picture_buffer_id_;
158 160
159 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage); 161 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage);
160 }; 162 };
161 163
162 } // namespace media 164 } // namespace media
163 165
164 #endif // MEDIA_GPU_AVDA_CODEC_IMAGE_H_ 166 #endif // MEDIA_GPU_AVDA_CODEC_IMAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698