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

Unified Diff: webkit/common/gpu/context_provider_in_process.cc

Issue 24182005: Fix partial swap support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « content/common/gpu/client/context_provider_command_buffer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/common/gpu/context_provider_in_process.cc
diff --git a/webkit/common/gpu/context_provider_in_process.cc b/webkit/common/gpu/context_provider_in_process.cc
index 9c315397f3209cc21b589b276057d4af5370a906..4d1f3d4289355dac378a3ba8dc5f25ccfc55ebe0 100644
--- a/webkit/common/gpu/context_provider_in_process.cc
+++ b/webkit/common/gpu/context_provider_in_process.cc
@@ -4,8 +4,11 @@
#include "webkit/common/gpu/context_provider_in_process.h"
+#include <set>
+
#include "base/bind.h"
#include "base/callback_helpers.h"
+#include "base/strings/string_split.h"
#include "base/strings/stringprintf.h"
#include "cc/output/managed_memory_policy.h"
#include "webkit/common/gpu/grcontext_for_webgraphicscontext3d.h"
@@ -154,6 +157,15 @@ ContextProviderInProcess::ContextCapabilities() {
caps.shallow_flush = true;
caps.texture_format_bgra8888 = true;
caps.texture_rectangle = true;
+
+ WebKit::WebString extensions =
+ context3d_->getString(0x1F03 /* GL_EXTENSIONS */);
+ std::vector<std::string> extension_list;
+ base::SplitString(extensions.utf8(), ' ', &extension_list);
+ std::set<std::string> extension_set(extension_list.begin(),
+ extension_list.end());
+
+ caps.post_sub_buffer = extension_set.count("GL_CHROMIUM_post_sub_buffer") > 0;
return caps;
}
« no previous file with comments | « content/common/gpu/client/context_provider_command_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698