| 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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 // Enumeration histogram buckets are linear, boundaryValue should be larger
than any possible sample value. | 552 // Enumeration histogram buckets are linear, boundaryValue should be larger
than any possible sample value. |
| 553 virtual void histogramEnumeration(const char* name, int sample, int boundary
Value) { } | 553 virtual void histogramEnumeration(const char* name, int sample, int boundary
Value) { } |
| 554 // Unlike enumeration histograms, sparse histograms only allocate memory for
non-empty buckets. | 554 // Unlike enumeration histograms, sparse histograms only allocate memory for
non-empty buckets. |
| 555 virtual void histogramSparse(const char* name, int sample) { } | 555 virtual void histogramSparse(const char* name, int sample) { } |
| 556 | 556 |
| 557 | 557 |
| 558 // GPU ---------------------------------------------------------------- | 558 // GPU ---------------------------------------------------------------- |
| 559 // | 559 // |
| 560 // May return null if GPU is not supported. | 560 // May return null if GPU is not supported. |
| 561 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in
stance. | 561 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in
stance. |
| 562 #ifdef ENABLE_EXPLICIT_GL_SHARE_GROUPS |
| 563 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap
hicsContext3D::Attributes&, WebGraphicsContext3D* share_context) { return 0; } |
| 564 #else |
| 562 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap
hicsContext3D::Attributes&) { return 0; } | 565 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap
hicsContext3D::Attributes&) { return 0; } |
| 566 #endif |
| 563 | 567 |
| 564 // Returns a newly allocated and initialized offscreen context provider. The
provider may return a null | 568 // Returns a newly allocated and initialized offscreen context provider. The
provider may return a null |
| 565 // graphics context if GPU is not supported. | 569 // graphics context if GPU is not supported. |
| 566 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D
Provider() { return 0; } | 570 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D
Provider() { return 0; } |
| 567 | 571 |
| 568 // Returns true if the platform is capable of producing an offscreen context
suitable for accelerating 2d canvas. | 572 // Returns true if the platform is capable of producing an offscreen context
suitable for accelerating 2d canvas. |
| 569 // This will return false if the platform cannot promise that contexts will
be preserved across operations like | 573 // This will return false if the platform cannot promise that contexts will
be preserved across operations like |
| 570 // locking the screen or if the platform cannot provide a context with suita
ble performance characteristics. | 574 // locking the screen or if the platform cannot provide a context with suita
ble performance characteristics. |
| 571 // | 575 // |
| 572 // This value must be checked again after a context loss event as the platfo
rm's capabilities may have changed. | 576 // 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... |
| 639 virtual WebDatabaseObserver* databaseObserver() { return 0; } | 643 virtual WebDatabaseObserver* databaseObserver() { return 0; } |
| 640 | 644 |
| 641 | 645 |
| 642 protected: | 646 protected: |
| 643 virtual ~Platform() { } | 647 virtual ~Platform() { } |
| 644 }; | 648 }; |
| 645 | 649 |
| 646 } // namespace blink | 650 } // namespace blink |
| 647 | 651 |
| 648 #endif | 652 #endif |
| OLD | NEW |