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

Unified Diff: ui/gfx/native_widget_types.h

Issue 1365563002: Make channel preemption not require view contexts for hookup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wakeup_gpu
Patch Set: rebase Created 5 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/test/test_render_view_host.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 0ce333c5507ddee13243574dd7856e5cc9f944f3..96201452e40c5f9f5dce6253a236230162c51b5c 100644
--- a/ui/gfx/native_widget_types.h
+++ b/ui/gfx/native_widget_types.h
@@ -210,15 +210,13 @@ typedef intptr_t NativeViewId;
typedef unsigned long PluginWindowHandle;
const PluginWindowHandle kNullPluginWindow = 0;
#elif defined(OS_ANDROID)
- typedef uint64 PluginWindowHandle;
+ typedef uint32 PluginWindowHandle;
const PluginWindowHandle kNullPluginWindow = 0;
#elif defined(USE_OZONE)
typedef intptr_t PluginWindowHandle;
const PluginWindowHandle kNullPluginWindow = 0;
#else
- // On Mac we don't have windowed plugins. We use a NULL/0 PluginWindowHandle
- // in shared code to indicate there is no window present.
- typedef bool PluginWindowHandle;
+ typedef uint32 PluginWindowHandle;
const PluginWindowHandle kNullPluginWindow = 0;
#endif
@@ -230,15 +228,9 @@ enum SurfaceType {
};
struct GLSurfaceHandle {
- GLSurfaceHandle()
- : handle(kNullPluginWindow),
- transport_type(EMPTY),
- parent_client_id(0) {
- }
+ GLSurfaceHandle() : handle(kNullPluginWindow), transport_type(EMPTY) {}
GLSurfaceHandle(PluginWindowHandle handle_, SurfaceType transport_)
- : handle(handle_),
- transport_type(transport_),
- parent_client_id(0) {
+ : handle(handle_), transport_type(transport_) {
DCHECK(!is_null() || handle == kNullPluginWindow);
DCHECK(transport_type != NULL_TRANSPORT ||
handle == kNullPluginWindow);
@@ -249,7 +241,6 @@ struct GLSurfaceHandle {
}
PluginWindowHandle handle;
SurfaceType transport_type;
- uint32 parent_client_id;
};
// AcceleratedWidget provides a surface to compositors to paint pixels.
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698