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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
453 // recordAction(UserMetricsAction("MyAction")) | 453 // recordAction(UserMetricsAction("MyAction")) |
454 virtual void recordAction(const UserMetricsAction&) {} | 454 virtual void recordAction(const UserMetricsAction&) {} |
455 | 455 |
456 typedef uint64_t WebMemoryAllocatorDumpGuid; | 456 typedef uint64_t WebMemoryAllocatorDumpGuid; |
457 | 457 |
458 // GPU ---------------------------------------------------------------- | 458 // GPU ---------------------------------------------------------------- |
459 // | 459 // |
460 struct ContextAttributes { | 460 struct ContextAttributes { |
461 bool failIfMajorPerformanceCaveat = false; | 461 bool failIfMajorPerformanceCaveat = false; |
462 unsigned webGLVersion = 0; | 462 unsigned webGLVersion = 0; |
463 bool supportOwnOffscreenSurface = false; | |
464 // The remaining values are only used if supportOwnOffscreenSurface is true. | |
465 bool supportAlpha = true; | |
aelias_OOO_until_Jul13
2017/02/16 03:25:51
These "true"s mixed in look arbitrary, can this be
klausw
2017/02/16 20:06:57
Done.
| |
466 bool supportDepth = false; | |
467 bool supportAntialias = true; | |
468 bool supportStencil = false; | |
463 }; | 469 }; |
464 struct GraphicsInfo { | 470 struct GraphicsInfo { |
465 unsigned vendorId = 0; | 471 unsigned vendorId = 0; |
466 unsigned deviceId = 0; | 472 unsigned deviceId = 0; |
467 unsigned processCrashCount = 0; | 473 unsigned processCrashCount = 0; |
468 unsigned resetNotificationStrategy = 0; | 474 unsigned resetNotificationStrategy = 0; |
469 bool sandboxed = false; | 475 bool sandboxed = false; |
470 bool amdSwitchable = false; | 476 bool amdSwitchable = false; |
471 bool optimus = false; | 477 bool optimus = false; |
472 WebString vendorInfo; | 478 WebString vendorInfo; |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
672 protected: | 678 protected: |
673 Platform(); | 679 Platform(); |
674 virtual ~Platform() {} | 680 virtual ~Platform() {} |
675 | 681 |
676 WebThread* m_mainThread; | 682 WebThread* m_mainThread; |
677 }; | 683 }; |
678 | 684 |
679 } // namespace blink | 685 } // namespace blink |
680 | 686 |
681 #endif | 687 #endif |
OLD | NEW |