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 // Offscreen contexts usually share a surface for the default frame buffer |
| 464 // since they aren't rendering to it. Setting any of the following |
| 465 // attributes causes creation of a custom surface owned by the context. |
| 466 bool supportAlpha = false; |
| 467 bool supportDepth = false; |
| 468 bool supportAntialias = false; |
| 469 bool supportStencil = false; |
463 }; | 470 }; |
464 struct GraphicsInfo { | 471 struct GraphicsInfo { |
465 unsigned vendorId = 0; | 472 unsigned vendorId = 0; |
466 unsigned deviceId = 0; | 473 unsigned deviceId = 0; |
467 unsigned processCrashCount = 0; | 474 unsigned processCrashCount = 0; |
468 unsigned resetNotificationStrategy = 0; | 475 unsigned resetNotificationStrategy = 0; |
469 bool sandboxed = false; | 476 bool sandboxed = false; |
470 bool amdSwitchable = false; | 477 bool amdSwitchable = false; |
471 bool optimus = false; | 478 bool optimus = false; |
472 WebString vendorInfo; | 479 WebString vendorInfo; |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 protected: | 679 protected: |
673 Platform(); | 680 Platform(); |
674 virtual ~Platform() {} | 681 virtual ~Platform() {} |
675 | 682 |
676 WebThread* m_mainThread; | 683 WebThread* m_mainThread; |
677 }; | 684 }; |
678 | 685 |
679 } // namespace blink | 686 } // namespace blink |
680 | 687 |
681 #endif | 688 #endif |
OLD | NEW |