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

Unified Diff: ppapi/proxy/video_decoder_resource.cc

Issue 337683002: Revert of Implement software fallback for PPB_VideoDecoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/video_decoder_resource.h ('k') | ppapi/proxy/video_decoder_resource_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/video_decoder_resource.cc
diff --git a/ppapi/proxy/video_decoder_resource.cc b/ppapi/proxy/video_decoder_resource.cc
index 2ca5ce2de8e015d5625f9dfa280424c446884f84..95365e8bba8e67e29c9834a7d0c118ef122067ae 100644
--- a/ppapi/proxy/video_decoder_resource.cc
+++ b/ppapi/proxy/video_decoder_resource.cc
@@ -7,7 +7,6 @@
#include "base/bind.h"
#include "gpu/command_buffer/client/gles2_cmd_helper.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
-#include "gpu/command_buffer/common/mailbox.h"
#include "ipc/ipc_message.h"
#include "ppapi/c/pp_errors.h"
#include "ppapi/c/ppb_opengles2.h"
@@ -113,7 +112,7 @@
enter_create.functions()->CreateGraphics3D(
pp_instance(), graphics_context, attrib_list));
EnterResourceNoLock<PPB_Graphics3D_API> enter_graphics(graphics3d_.get(),
- false);
+ true);
if (enter_graphics.failed())
return PP_ERROR_BADRESOURCE;
@@ -333,10 +332,8 @@
const ResourceMessageReplyParams& params,
uint32_t num_textures,
const PP_Size& size,
- uint32_t texture_target,
- const std::vector<gpu::Mailbox>& mailboxes) {
+ uint32_t texture_target) {
DCHECK(num_textures);
- DCHECK(mailboxes.empty() || mailboxes.size() == num_textures);
std::vector<uint32_t> texture_ids(num_textures);
if (gles2_impl_) {
gles2_impl_->GenTextures(num_textures, &texture_ids.front());
@@ -363,10 +360,6 @@
GL_UNSIGNED_BYTE,
NULL);
}
- if (!mailboxes.empty()) {
- gles2_impl_->ProduceTextureCHROMIUM(
- GL_TEXTURE_2D, reinterpret_cast<const GLbyte*>(mailboxes[i].name));
- }
textures_.insert(
std::make_pair(texture_ids[i], Texture(texture_target, size)));
« no previous file with comments | « ppapi/proxy/video_decoder_resource.h ('k') | ppapi/proxy/video_decoder_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698