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

Unified Diff: cc/output/gl_renderer.cc

Issue 2282433002: Revert of cc: Delete all the RendererCapabilities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-prepare-mailbox-param
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/gl_renderer.h ('k') | cc/output/renderer_capabilities.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index af574844fac381ab879e00bf98dbadf62aca8679..f8d70c4ddb85012371f11a05db47a70bd3375a6f 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -397,6 +397,9 @@
output_surface_->context_provider()->ContextCapabilities();
DCHECK(!context_caps.iosurface || context_caps.texture_rectangle);
+ capabilities_.max_texture_size = resource_provider_->max_texture_size();
+ capabilities_.best_texture_format = resource_provider_->best_texture_format();
+
use_discard_framebuffer_ = context_caps.discard_framebuffer;
use_sync_query_ = context_caps.sync_query;
use_blend_equation_advanced_ = context_caps.blend_equation_advanced;
@@ -415,6 +418,10 @@
}
CleanupSharedObjects();
+}
+
+const RendererCapabilitiesImpl& GLRenderer::Capabilities() const {
+ return capabilities_;
}
bool GLRenderer::CanPartialSwap() {
« no previous file with comments | « cc/output/gl_renderer.h ('k') | cc/output/renderer_capabilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698