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

Side by Side Diff: ui/gfx/native_widget_types.h

Issue 11475017: Revert 171569 as it broke some browser_tests on win_aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/compositor/compositor.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_NATIVE_WIDGET_TYPES_H_ 5 #ifndef UI_GFX_NATIVE_WIDGET_TYPES_H_
6 #define UI_GFX_NATIVE_WIDGET_TYPES_H_ 6 #define UI_GFX_NATIVE_WIDGET_TYPES_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_ANDROID) 10 #if defined(OS_ANDROID)
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // pointer on 64-bit architectures in case we need this capability. 271 // pointer on 64-bit architectures in case we need this capability.
272 typedef uint64 PluginWindowHandle; 272 typedef uint64 PluginWindowHandle;
273 const PluginWindowHandle kNullPluginWindow = 0; 273 const PluginWindowHandle kNullPluginWindow = 0;
274 #endif 274 #endif
275 275
276 struct GLSurfaceHandle { 276 struct GLSurfaceHandle {
277 GLSurfaceHandle() 277 GLSurfaceHandle()
278 : handle(kNullPluginWindow), 278 : handle(kNullPluginWindow),
279 transport(false), 279 transport(false),
280 parent_gpu_process_id(0), 280 parent_gpu_process_id(0),
281 parent_client_id(0) { 281 parent_client_id(0),
282 parent_context_id(0),
283 sync_point(0) {
284 parent_texture_id[0] = 0;
285 parent_texture_id[1] = 0;
282 } 286 }
283 GLSurfaceHandle(PluginWindowHandle handle_, bool transport_) 287 GLSurfaceHandle(PluginWindowHandle handle_, bool transport_)
284 : handle(handle_), 288 : handle(handle_),
285 transport(transport_), 289 transport(transport_),
286 parent_gpu_process_id(0), 290 parent_gpu_process_id(0),
287 parent_client_id(0) { 291 parent_client_id(0),
292 parent_context_id(0),
293 sync_point(0) {
294 parent_texture_id[0] = 0;
295 parent_texture_id[1] = 0;
288 } 296 }
289 bool is_null() const { return handle == kNullPluginWindow && !transport; } 297 bool is_null() const { return handle == kNullPluginWindow && !transport; }
290 PluginWindowHandle handle; 298 PluginWindowHandle handle;
291 bool transport; 299 bool transport;
292 int parent_gpu_process_id; 300 int parent_gpu_process_id;
293 uint32 parent_client_id; 301 uint32 parent_client_id;
302 uint32 parent_context_id;
303 uint32 parent_texture_id[2];
304 uint32 sync_point;
294 }; 305 };
295 306
296 // AcceleratedWidget provides a surface to compositors to paint pixels. 307 // AcceleratedWidget provides a surface to compositors to paint pixels.
297 #if defined(OS_WIN) 308 #if defined(OS_WIN)
298 typedef HWND AcceleratedWidget; 309 typedef HWND AcceleratedWidget;
299 const AcceleratedWidget kNullAcceleratedWidget = NULL; 310 const AcceleratedWidget kNullAcceleratedWidget = NULL;
300 #elif defined(USE_X11) 311 #elif defined(USE_X11)
301 typedef unsigned long AcceleratedWidget; 312 typedef unsigned long AcceleratedWidget;
302 const AcceleratedWidget kNullAcceleratedWidget = 0; 313 const AcceleratedWidget kNullAcceleratedWidget = 0;
303 #elif defined(OS_IOS) 314 #elif defined(OS_IOS)
304 typedef UIView* AcceleratedWidget; 315 typedef UIView* AcceleratedWidget;
305 const AcceleratedWidget kNullAcceleratedWidget = 0; 316 const AcceleratedWidget kNullAcceleratedWidget = 0;
306 #elif defined(OS_MACOSX) 317 #elif defined(OS_MACOSX)
307 typedef NSView* AcceleratedWidget; 318 typedef NSView* AcceleratedWidget;
308 const AcceleratedWidget kNullAcceleratedWidget = 0; 319 const AcceleratedWidget kNullAcceleratedWidget = 0;
309 #elif defined(OS_ANDROID) 320 #elif defined(OS_ANDROID)
310 typedef ANativeWindow* AcceleratedWidget; 321 typedef ANativeWindow* AcceleratedWidget;
311 const AcceleratedWidget kNullAcceleratedWidget = 0; 322 const AcceleratedWidget kNullAcceleratedWidget = 0;
312 #else 323 #else
313 #error unknown platform 324 #error unknown platform
314 #endif 325 #endif
315 326
316 } // namespace gfx 327 } // namespace gfx
317 328
318 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ 329 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698