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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
591 // Returns guid corresponding to the given string (the hash value) for | 591 // Returns guid corresponding to the given string (the hash value) for |
592 // creating a WebMemoryAllocatorDump. | 592 // creating a WebMemoryAllocatorDump. |
593 virtual WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid(const We bString& guidStr) { return 0; } | 593 virtual WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid(const We bString& guidStr) { return 0; } |
594 | 594 |
595 // GPU ---------------------------------------------------------------- | 595 // GPU ---------------------------------------------------------------- |
596 // | 596 // |
597 // May return null if GPU is not supported. | 597 // May return null if GPU is not supported. |
598 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. | 598 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. |
599 // Passing an existing context to shareContext will create the new context i n the same share group as the passed context. | 599 // Passing an existing context to shareContext will create the new context i n the same share group as the passed context. |
600 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return nullptr ; } | 600 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return nullptr ; } |
601 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo* glInf o) { return nullptr; } | 601 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGraphicsConte xt3D::WebGraphicsContext3DInfo& glInfo) { return nullptr; } |
Zhenyao Mo
2015/10/15 22:30:37
I don't like the new name. It's misleading that t
sivag
2015/10/16 18:29:20
Done.
| |
602 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return nullptr; } | 602 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return nullptr; } |
603 | 603 |
604 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null | 604 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null |
605 // graphics context if GPU is not supported. | 605 // graphics context if GPU is not supported. |
606 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D Provider() { return nullptr; } | 606 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D Provider() { return nullptr; } |
607 | 607 |
608 // Returns true if the platform is capable of producing an offscreen context suitable for accelerating 2d canvas. | 608 // Returns true if the platform is capable of producing an offscreen context suitable for accelerating 2d canvas. |
609 // This will return false if the platform cannot promise that contexts will be preserved across operations like | 609 // This will return false if the platform cannot promise that contexts will be preserved across operations like |
610 // locking the screen or if the platform cannot provide a context with suita ble performance characteristics. | 610 // locking the screen or if the platform cannot provide a context with suita ble performance characteristics. |
611 // | 611 // |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
741 protected: | 741 protected: |
742 BLINK_PLATFORM_EXPORT Platform(); | 742 BLINK_PLATFORM_EXPORT Platform(); |
743 virtual ~Platform() { } | 743 virtual ~Platform() { } |
744 | 744 |
745 WebThread* m_mainThread; | 745 WebThread* m_mainThread; |
746 }; | 746 }; |
747 | 747 |
748 } // namespace blink | 748 } // namespace blink |
749 | 749 |
750 #endif | 750 #endif |
OLD | NEW |