OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |