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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
545 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value. | 545 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value. |
546 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { } | 546 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { } |
547 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets. | 547 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets. |
548 virtual void histogramSparse(const char* name, int sample) { } | 548 virtual void histogramSparse(const char* name, int sample) { } |
549 | 549 |
550 | 550 |
551 // GPU ---------------------------------------------------------------- | 551 // GPU ---------------------------------------------------------------- |
552 // | 552 // |
553 // May return null if GPU is not supported. | 553 // May return null if GPU is not supported. |
554 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. | 554 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. |
555 #ifdef ENABLE_EXPLICIT_GL_SHARE_GROUPS | |
556 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* share_context) { return 0; } | |
557 #else | |
555 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; } | 558 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; } |
Zhenyao Mo
2014/03/03 18:39:49
I think getting rid of the other signature (the on
bajones
2014/03/03 18:48:27
The idea is to get rid of it, but it can't be remo
| |
559 #endif | |
556 | 560 |
557 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null | 561 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null |
558 // graphics context if GPU is not supported. | 562 // graphics context if GPU is not supported. |
559 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D Provider() { return 0; } | 563 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D Provider() { return 0; } |
560 | 564 |
561 // Returns true if the platform is capable of producing an offscreen context suitable for accelerating 2d canvas. | 565 // Returns true if the platform is capable of producing an offscreen context suitable for accelerating 2d canvas. |
562 // This will return false if the platform cannot promise that contexts will be preserved across operations like | 566 // This will return false if the platform cannot promise that contexts will be preserved across operations like |
563 // locking the screen or if the platform cannot provide a context with suita ble performance characteristics. | 567 // locking the screen or if the platform cannot provide a context with suita ble performance characteristics. |
564 // | 568 // |
565 // This value must be checked again after a context loss event as the platfo rm's capabilities may have changed. | 569 // This value must be checked again after a context loss event as the platfo rm's capabilities may have changed. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
632 virtual WebDatabaseObserver* databaseObserver() { return 0; } | 636 virtual WebDatabaseObserver* databaseObserver() { return 0; } |
633 | 637 |
634 | 638 |
635 protected: | 639 protected: |
636 virtual ~Platform() { } | 640 virtual ~Platform() { } |
637 }; | 641 }; |
638 | 642 |
639 } // namespace blink | 643 } // namespace blink |
640 | 644 |
641 #endif | 645 #endif |
OLD | NEW |