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

Unified Diff: ui/gfx/native_widget_types.h

Issue 12463007: Disable partial swaps for webview guest renderer until we can figure out how to do that properly. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 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/renderer/browser_plugin/browser_plugin_compositing_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/native_widget_types.h
diff --git a/ui/gfx/native_widget_types.h b/ui/gfx/native_widget_types.h
index b187d57f1e890a0427cf8177fe38b7696df1ea47..54d382629f00a41f3132275e1554d51770f886a2 100644
--- a/ui/gfx/native_widget_types.h
+++ b/ui/gfx/native_widget_types.h
@@ -271,7 +271,8 @@ enum SurfaceType {
EMPTY,
NATIVE_DIRECT,
NATIVE_TRANSPORT,
- TEXTURE_TRANSPORT
+ TEXTURE_TRANSPORT,
+ TEXTURE_TRANSPORT_NO_PARTIAL_SWAP
piman 2013/03/05 20:32:37 I'm really uneasy with passing feature flags throu
alexst (slow to review) 2013/03/05 21:09:28 I'll need to go do some digging to find a good way
};
struct GLSurfaceHandle {
@@ -288,12 +289,14 @@ struct GLSurfaceHandle {
parent_client_id(0) {
DCHECK(!is_null() || handle == kNullPluginWindow);
DCHECK(transport_type != TEXTURE_TRANSPORT ||
+ transport_type != TEXTURE_TRANSPORT_NO_PARTIAL_SWAP ||
handle == kNullPluginWindow);
}
bool is_null() const { return transport_type == EMPTY; }
bool is_transport() const {
return transport_type == NATIVE_TRANSPORT ||
- transport_type == TEXTURE_TRANSPORT;
+ transport_type == TEXTURE_TRANSPORT ||
+ transport_type == TEXTURE_TRANSPORT_NO_PARTIAL_SWAP;
}
PluginWindowHandle handle;
SurfaceType transport_type;
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_compositing_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698