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; | |
468 }; | 462 }; |
469 struct GraphicsInfo { | 463 struct GraphicsInfo { |
470 unsigned vendorId = 0; | 464 unsigned vendorId = 0; |
471 unsigned deviceId = 0; | 465 unsigned deviceId = 0; |
472 unsigned processCrashCount = 0; | 466 unsigned processCrashCount = 0; |
473 unsigned resetNotificationStrategy = 0; | 467 unsigned resetNotificationStrategy = 0; |
474 bool sandboxed = false; | 468 bool sandboxed = false; |
475 bool amdSwitchable = false; | 469 bool amdSwitchable = false; |
476 bool optimus = false; | 470 bool optimus = false; |
477 WebString vendorInfo; | 471 WebString vendorInfo; |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 protected: | 671 protected: |
678 Platform(); | 672 Platform(); |
679 virtual ~Platform() {} | 673 virtual ~Platform() {} |
680 | 674 |
681 WebThread* m_mainThread; | 675 WebThread* m_mainThread; |
682 }; | 676 }; |
683 | 677 |
684 } // namespace blink | 678 } // namespace blink |
685 | 679 |
686 #endif | 680 #endif |
OLD | NEW |