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

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

Issue 11194042: Implement TextureImageTransportSurface using texture mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura DCHECK() 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;
286 } 282 }
287 GLSurfaceHandle(PluginWindowHandle handle_, bool transport_) 283 GLSurfaceHandle(PluginWindowHandle handle_, bool transport_)
288 : handle(handle_), 284 : handle(handle_),
289 transport(transport_), 285 transport(transport_),
290 parent_gpu_process_id(0), 286 parent_gpu_process_id(0),
291 parent_client_id(0), 287 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;
296 } 288 }
297 bool is_null() const { return handle == kNullPluginWindow && !transport; } 289 bool is_null() const { return handle == kNullPluginWindow && !transport; }
298 PluginWindowHandle handle; 290 PluginWindowHandle handle;
299 bool transport; 291 bool transport;
300 int parent_gpu_process_id; 292 int parent_gpu_process_id;
301 uint32 parent_client_id; 293 uint32 parent_client_id;
302 uint32 parent_context_id;
303 uint32 parent_texture_id[2];
304 uint32 sync_point;
305 }; 294 };
306 295
307 // AcceleratedWidget provides a surface to compositors to paint pixels. 296 // AcceleratedWidget provides a surface to compositors to paint pixels.
308 #if defined(OS_WIN) 297 #if defined(OS_WIN)
309 typedef HWND AcceleratedWidget; 298 typedef HWND AcceleratedWidget;
310 const AcceleratedWidget kNullAcceleratedWidget = NULL; 299 const AcceleratedWidget kNullAcceleratedWidget = NULL;
311 #elif defined(USE_X11) 300 #elif defined(USE_X11)
312 typedef unsigned long AcceleratedWidget; 301 typedef unsigned long AcceleratedWidget;
313 const AcceleratedWidget kNullAcceleratedWidget = 0; 302 const AcceleratedWidget kNullAcceleratedWidget = 0;
314 #elif defined(OS_IOS) 303 #elif defined(OS_IOS)
315 typedef UIView* AcceleratedWidget; 304 typedef UIView* AcceleratedWidget;
316 const AcceleratedWidget kNullAcceleratedWidget = 0; 305 const AcceleratedWidget kNullAcceleratedWidget = 0;
317 #elif defined(OS_MACOSX) 306 #elif defined(OS_MACOSX)
318 typedef NSView* AcceleratedWidget; 307 typedef NSView* AcceleratedWidget;
319 const AcceleratedWidget kNullAcceleratedWidget = 0; 308 const AcceleratedWidget kNullAcceleratedWidget = 0;
320 #elif defined(OS_ANDROID) 309 #elif defined(OS_ANDROID)
321 typedef ANativeWindow* AcceleratedWidget; 310 typedef ANativeWindow* AcceleratedWidget;
322 const AcceleratedWidget kNullAcceleratedWidget = 0; 311 const AcceleratedWidget kNullAcceleratedWidget = 0;
323 #else 312 #else
324 #error unknown platform 313 #error unknown platform
325 #endif 314 #endif
326 315
327 } // namespace gfx 316 } // namespace gfx
328 317
329 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ 318 #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