| 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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 // registerMemoryDumpProvider() method. | 571 // registerMemoryDumpProvider() method. |
| 572 // See crbug.com/458295 for design docs. | 572 // See crbug.com/458295 for design docs. |
| 573 virtual void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*) { } | 573 virtual void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*) { } |
| 574 | 574 |
| 575 // Must be called on the thread that called registerMemoryDumpProvider(). | 575 // Must be called on the thread that called registerMemoryDumpProvider(). |
| 576 virtual void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) { } | 576 virtual void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) { } |
| 577 | 577 |
| 578 // Returns a newly allocated WebProcessMemoryDump instance. | 578 // Returns a newly allocated WebProcessMemoryDump instance. |
| 579 virtual blink::WebProcessMemoryDump* createProcessMemoryDump() { return null
ptr; } | 579 virtual blink::WebProcessMemoryDump* createProcessMemoryDump() { return null
ptr; } |
| 580 | 580 |
| 581 typedef uint64_t WebMemoryAllocatorDumpGuid; |
| 582 |
| 583 // Returns guid corresponding to the given string (the hash value) for |
| 584 // creating a WebMemoryAllocatorDump. |
| 585 virtual WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid(const We
bString& guidStr) { return 0; } |
| 586 |
| 581 // GPU ---------------------------------------------------------------- | 587 // GPU ---------------------------------------------------------------- |
| 582 // | 588 // |
| 583 // May return null if GPU is not supported. | 589 // May return null if GPU is not supported. |
| 584 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in
stance. | 590 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in
stance. |
| 585 // Passing an existing context to shareContext will create the new context i
n the same share group as the passed context. | 591 // Passing an existing context to shareContext will create the new context i
n the same share group as the passed context. |
| 586 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap
hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return nullptr
; } | 592 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap
hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return nullptr
; } |
| 587 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap
hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo* glInf
o) { return nullptr; } | 593 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap
hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo* glInf
o) { return nullptr; } |
| 588 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap
hicsContext3D::Attributes&) { return nullptr; } | 594 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap
hicsContext3D::Attributes&) { return nullptr; } |
| 589 | 595 |
| 590 // Returns a newly allocated and initialized offscreen context provider. The
provider may return a null | 596 // Returns a newly allocated and initialized offscreen context provider. The
provider may return a null |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 protected: | 724 protected: |
| 719 BLINK_PLATFORM_EXPORT Platform(); | 725 BLINK_PLATFORM_EXPORT Platform(); |
| 720 virtual ~Platform() { } | 726 virtual ~Platform() { } |
| 721 | 727 |
| 722 WebThread* m_mainThread; | 728 WebThread* m_mainThread; |
| 723 }; | 729 }; |
| 724 | 730 |
| 725 } // namespace blink | 731 } // namespace blink |
| 726 | 732 |
| 727 #endif | 733 #endif |
| OLD | NEW |