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

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

Issue 1207043002: Introduce a client minimum picture pool size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switch to Dev channel interface. But *NOT* dev/ppb_video_decoder_dev.idl 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
« no previous file with comments | « ppapi/thunk/ppb_video_decoder_thunk.cc ('k') | tools/metrics/histograms/histograms.xml » ('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 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 #include "remoting/client/plugin/pepper_video_renderer_3d.h" 5 #include "remoting/client/plugin/pepper_video_renderer_3d.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 case protocol::ChannelConfig::CODEC_VP8: 164 case protocol::ChannelConfig::CODEC_VP8:
165 video_profile = PP_VIDEOPROFILE_VP8_ANY; 165 video_profile = PP_VIDEOPROFILE_VP8_ANY;
166 break; 166 break;
167 case protocol::ChannelConfig::CODEC_VP9: 167 case protocol::ChannelConfig::CODEC_VP9:
168 video_profile = PP_VIDEOPROFILE_VP9_ANY; 168 video_profile = PP_VIDEOPROFILE_VP9_ANY;
169 break; 169 break;
170 default: 170 default:
171 NOTREACHED(); 171 NOTREACHED();
172 } 172 }
173 int32_t result = video_decoder_.Initialize( 173 int32_t result = video_decoder_.Initialize(
174 graphics_, video_profile, PP_HARDWAREACCELERATION_WITHFALLBACK, 174 graphics_, video_profile, PP_HARDWAREACCELERATION_WITHFALLBACK, 0,
Sergey Ulanov 2015/08/11 18:17:01 What happens when a plugin calls GetPicture() whil
lpique 2015/08/11 19:56:10 At present, the call to GetPictures() succeeds (PP
175 callback_factory_.NewCallback(&PepperVideoRenderer3D::OnInitialized)); 175 callback_factory_.NewCallback(&PepperVideoRenderer3D::OnInitialized));
176 CHECK_EQ(result, PP_OK_COMPLETIONPENDING) 176 CHECK_EQ(result, PP_OK_COMPLETIONPENDING)
177 << "video_decoder_.Initialize() returned " << result; 177 << "video_decoder_.Initialize() returned " << result;
178 } 178 }
179 179
180 ChromotingStats* PepperVideoRenderer3D::GetStats() { 180 ChromotingStats* PepperVideoRenderer3D::GetStats() {
181 return &stats_; 181 return &stats_;
182 } 182 }
183 183
184 protocol::VideoStub* PepperVideoRenderer3D::GetVideoStub() { 184 protocol::VideoStub* PepperVideoRenderer3D::GetVideoStub() {
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 gles2_if_->AttachShader(graphics_.pp_resource(), shader_program_, shader); 530 gles2_if_->AttachShader(graphics_.pp_resource(), shader_program_, shader);
531 gles2_if_->DeleteShader(graphics_.pp_resource(), shader); 531 gles2_if_->DeleteShader(graphics_.pp_resource(), shader);
532 } 532 }
533 533
534 void PepperVideoRenderer3D::CheckGLError() { 534 void PepperVideoRenderer3D::CheckGLError() {
535 GLenum error = gles2_if_->GetError(graphics_.pp_resource()); 535 GLenum error = gles2_if_->GetError(graphics_.pp_resource());
536 CHECK_EQ(error, static_cast<GLenum>(GL_NO_ERROR)) << "GL error: " << error; 536 CHECK_EQ(error, static_cast<GLenum>(GL_NO_ERROR)) << "GL error: " << error;
537 } 537 }
538 538
539 } // namespace remoting 539 } // namespace remoting
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_video_decoder_thunk.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698