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

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 2456213002: WebVR: implement SetSurfaceHandleCHROMIUM extension for gvr_device.
Patch Set: Rebase, set dependency. Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 // recordAction(UserMetricsAction("MyAction")) 452 // recordAction(UserMetricsAction("MyAction"))
453 virtual void recordAction(const UserMetricsAction&) {} 453 virtual void recordAction(const UserMetricsAction&) {}
454 454
455 typedef uint64_t WebMemoryAllocatorDumpGuid; 455 typedef uint64_t WebMemoryAllocatorDumpGuid;
456 456
457 // GPU ---------------------------------------------------------------- 457 // GPU ----------------------------------------------------------------
458 // 458 //
459 struct ContextAttributes { 459 struct ContextAttributes {
460 bool failIfMajorPerformanceCaveat = false; 460 bool failIfMajorPerformanceCaveat = false;
461 unsigned webGLVersion = 0; 461 unsigned webGLVersion = 0;
462 bool supportOwnOffscreenSurface = false;
463 // The remaining values are only used if supportOwnOffscreenSurface is true.
464 bool supportAlpha = true;
465 bool supportDepth = false;
466 bool supportAntialias = true;
467 bool supportStencil = false;
462 }; 468 };
463 struct GraphicsInfo { 469 struct GraphicsInfo {
464 unsigned vendorId = 0; 470 unsigned vendorId = 0;
465 unsigned deviceId = 0; 471 unsigned deviceId = 0;
466 unsigned processCrashCount = 0; 472 unsigned processCrashCount = 0;
467 unsigned resetNotificationStrategy = 0; 473 unsigned resetNotificationStrategy = 0;
468 bool sandboxed = false; 474 bool sandboxed = false;
469 bool amdSwitchable = false; 475 bool amdSwitchable = false;
470 bool optimus = false; 476 bool optimus = false;
471 WebString vendorInfo; 477 WebString vendorInfo;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 protected: 677 protected:
672 Platform(); 678 Platform();
673 virtual ~Platform() {} 679 virtual ~Platform() {}
674 680
675 WebThread* m_mainThread; 681 WebThread* m_mainThread;
676 }; 682 };
677 683
678 } // namespace blink 684 } // namespace blink
679 685
680 #endif 686 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp ('k') | ui/gl/gl_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698