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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
551 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value. | 551 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value. |
552 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { } | 552 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { } |
553 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets. | 553 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets. |
554 virtual void histogramSparse(const char* name, int sample) { } | 554 virtual void histogramSparse(const char* name, int sample) { } |
555 | 555 |
556 | 556 |
557 // GPU ---------------------------------------------------------------- | 557 // GPU ---------------------------------------------------------------- |
558 // | 558 // |
559 // May return null if GPU is not supported. | 559 // May return null if GPU is not supported. |
560 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. | 560 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. |
561 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* share_context) { return 0; } | |
jamesr
2014/03/17 21:01:22
this is blink, so shareContext.
probably worth ex
| |
561 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; } | 562 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; } |
562 | 563 |
563 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null | 564 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null |
564 // graphics context if GPU is not supported. | 565 // graphics context if GPU is not supported. |
565 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D Provider() { return 0; } | 566 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D Provider() { return 0; } |
566 | 567 |
567 // Returns true if the platform is capable of producing an offscreen context suitable for accelerating 2d canvas. | 568 // Returns true if the platform is capable of producing an offscreen context suitable for accelerating 2d canvas. |
568 // This will return false if the platform cannot promise that contexts will be preserved across operations like | 569 // This will return false if the platform cannot promise that contexts will be preserved across operations like |
569 // locking the screen or if the platform cannot provide a context with suita ble performance characteristics. | 570 // locking the screen or if the platform cannot provide a context with suita ble performance characteristics. |
570 // | 571 // |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
638 virtual WebDatabaseObserver* databaseObserver() { return 0; } | 639 virtual WebDatabaseObserver* databaseObserver() { return 0; } |
639 | 640 |
640 | 641 |
641 protected: | 642 protected: |
642 virtual ~Platform() { } | 643 virtual ~Platform() { } |
643 }; | 644 }; |
644 | 645 |
645 } // namespace blink | 646 } // namespace blink |
646 | 647 |
647 #endif | 648 #endif |
OLD | NEW |