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

Unified Diff: content/renderer/pepper/video_decoder_shim.cc

Issue 1900993002: Move SharedMemoryLimits out of WebGraphicsContext3DCommandBufferImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@limits
Patch Set: move-limits: types Created 4 years, 8 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
Index: content/renderer/pepper/video_decoder_shim.cc
diff --git a/content/renderer/pepper/video_decoder_shim.cc b/content/renderer/pepper/video_decoder_shim.cc
index 2024207c2f30356cdb966f90ae8e934f47be0159..2b01901eaeb458a32718249fcb16381116fbe31f 100644
--- a/content/renderer/pepper/video_decoder_shim.cc
+++ b/content/renderer/pepper/video_decoder_shim.cc
@@ -316,7 +316,7 @@ GLuint VideoDecoderShim::YUVConverter::CreateShader() {
bool VideoDecoderShim::YUVConverter::Initialize() {
// If texture_rg extension is not available, use slower GL_LUMINANCE.
- if (context_provider_->ContextCapabilities().gpu.texture_rg) {
+ if (context_provider_->ContextCapabilities().texture_rg) {
internal_format_ = GL_RED_EXT;
format_ = GL_RED_EXT;
} else {
@@ -324,8 +324,7 @@ bool VideoDecoderShim::YUVConverter::Initialize() {
format_ = GL_LUMINANCE;
}
- if (context_provider_->ContextCapabilities().gpu.max_texture_image_units <
- 4) {
+ if (context_provider_->ContextCapabilities().max_texture_image_units < 4) {
// We support YUVA textures and require 4 texture units in the fragment
// stage.
return false;
« no previous file with comments | « content/renderer/media/renderer_gpu_video_accelerator_factories.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698