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

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

Issue 1830453002: WebGL: GL_RGB emulation for IOSurface backed textures. [For reference only] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile error. Created 4 years, 9 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
« no previous file with comments | « no previous file | content/common/gpu/media/avda_codec_image.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 30 matching lines...) Expand all
41 const gfx::Point& offset, 41 const gfx::Point& offset,
42 const gfx::Rect& rect) override; 42 const gfx::Rect& rect) override;
43 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 43 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
44 int z_order, 44 int z_order,
45 gfx::OverlayTransform transform, 45 gfx::OverlayTransform transform,
46 const gfx::Rect& bounds_rect, 46 const gfx::Rect& bounds_rect,
47 const gfx::RectF& crop_rect) override; 47 const gfx::RectF& crop_rect) override;
48 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 48 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
49 uint64_t process_tracing_id, 49 uint64_t process_tracing_id,
50 const std::string& dump_name) override; 50 const std::string& dump_name) override;
51 bool EmulatingRGB() const override;
51 // gpu::gles2::GLStreamTextureMatrix implementation 52 // gpu::gles2::GLStreamTextureMatrix implementation
52 void GetTextureMatrix(float xform[16]) override; 53 void GetTextureMatrix(float xform[16]) override;
53 54
54 public: 55 public:
55 // Decoded buffer index that has the image for us to display. 56 // Decoded buffer index that has the image for us to display.
56 void SetMediaCodecBufferIndex(int buffer_index); 57 void SetMediaCodecBufferIndex(int buffer_index);
57 58
58 // Return the codec buffer that we will return to the codec, or 59 // Return the codec buffer that we will return to the codec, or
59 // <0 if there is no such buffer. 60 // <0 if there is no such buffer.
60 int GetMediaCodecBufferIndex() const; 61 int GetMediaCodecBufferIndex() const;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 124
124 // Texture matrix of the front buffer of the surface texture. 125 // Texture matrix of the front buffer of the surface texture.
125 float gl_matrix_[16]; 126 float gl_matrix_[16];
126 127
127 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage); 128 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage);
128 }; 129 };
129 130
130 } // namespace content 131 } // namespace content
131 132
132 #endif // CONTENT_COMMON_GPU_MEDIA_AVDA_CODEC_IMAGE_H_ 133 #endif // CONTENT_COMMON_GPU_MEDIA_AVDA_CODEC_IMAGE_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/media/avda_codec_image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698