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

Unified Diff: gpu/command_buffer/service/context_group.cc

Issue 24079010: gpu: Upgrade DEPTH_COMPONENT16 to DEPTH_COMPONENT24 if possible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix failing unit test by restoring previous GL implementation. Created 7 years, 3 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 | « no previous file | gpu/command_buffer/service/feature_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/context_group.cc
diff --git a/gpu/command_buffer/service/context_group.cc b/gpu/command_buffer/service/context_group.cc
index bb6ad711e50ef9f3db4f3082e76dd223ed83fed5..0cb6e51aa23046f89bc94f552c29dc89f61099af 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -120,12 +120,15 @@ bool ContextGroup::Initialize(
draw_buffer_ = GL_BACK;
}
+ const bool depth24_supported = feature_info_->feature_flags().oes_depth24;
+
buffer_manager_.reset(
new BufferManager(memory_tracker_.get(), feature_info_.get()));
framebuffer_manager_.reset(
new FramebufferManager(max_draw_buffers_, max_color_attachments_));
renderbuffer_manager_.reset(new RenderbufferManager(
- memory_tracker_.get(), max_renderbuffer_size, max_samples));
+ memory_tracker_.get(), max_renderbuffer_size, max_samples,
+ depth24_supported));
shader_manager_.reset(new ShaderManager());
// Lookup GL things we need to know.
« no previous file with comments | « no previous file | gpu/command_buffer/service/feature_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698