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

Side by Side Diff: remoting/client/plugin/pepper_video_renderer_3d.h

Issue 1207043002: Introduce a client minimum picture pool size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_ 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_ 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Initializes |shader_program_| with the given shaders. 89 // Initializes |shader_program_| with the given shaders.
90 void CreateProgram(const char* vertex_shader, const char* fragment_shader); 90 void CreateProgram(const char* vertex_shader, const char* fragment_shader);
91 91
92 // Creates a new shader and compiles |source| for it. 92 // Creates a new shader and compiles |source| for it.
93 void CreateShaderProgram(int type, const char* source); 93 void CreateShaderProgram(int type, const char* source);
94 94
95 // CHECKs that the last OpenGL call has completed successfully. 95 // CHECKs that the last OpenGL call has completed successfully.
96 void CheckGLError(); 96 void CheckGLError();
97 97
98 // The implementation here requires this minimum number of pictures from the
99 // video decoder interface to work.
100 static const uint32_t kMinimumPictureCount = 3;
Sergey Ulanov 2015/08/11 23:10:20 This doesn't need to be defined in the class. It c
101
98 EventHandler* event_handler_; 102 EventHandler* event_handler_;
99 103
100 pp::Graphics3D graphics_; 104 pp::Graphics3D graphics_;
101 const PPB_OpenGLES2* gles2_if_; 105 const PPB_OpenGLES2* gles2_if_;
102 pp::VideoDecoder video_decoder_; 106 pp::VideoDecoder video_decoder_;
103 107
104 webrtc::DesktopSize frame_size_; 108 webrtc::DesktopSize frame_size_;
105 webrtc::DesktopVector frame_dpi_; 109 webrtc::DesktopVector frame_dpi_;
106 webrtc::DesktopRegion desktop_shape_; 110 webrtc::DesktopRegion desktop_shape_;
107 111
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 bool debug_dirty_region_; 158 bool debug_dirty_region_;
155 159
156 pp::CompletionCallbackFactory<PepperVideoRenderer3D> callback_factory_; 160 pp::CompletionCallbackFactory<PepperVideoRenderer3D> callback_factory_;
157 161
158 DISALLOW_COPY_AND_ASSIGN(PepperVideoRenderer3D); 162 DISALLOW_COPY_AND_ASSIGN(PepperVideoRenderer3D);
159 }; 163 };
160 164
161 } // namespace remoting 165 } // namespace remoting
162 166
163 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_ 167 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698