| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "WebLocalizedString.h" | 47 #include "WebLocalizedString.h" |
| 48 #include "WebPlatformEventType.h" | 48 #include "WebPlatformEventType.h" |
| 49 #include "WebSize.h" | 49 #include "WebSize.h" |
| 50 #include "WebSpeechSynthesizer.h" | 50 #include "WebSpeechSynthesizer.h" |
| 51 #include "WebStorageQuotaCallbacks.h" | 51 #include "WebStorageQuotaCallbacks.h" |
| 52 #include "WebStorageQuotaType.h" | 52 #include "WebStorageQuotaType.h" |
| 53 #include "WebString.h" | 53 #include "WebString.h" |
| 54 #include "WebURLError.h" | 54 #include "WebURLError.h" |
| 55 #include "WebVector.h" | 55 #include "WebVector.h" |
| 56 #include "base/metrics/user_metrics_action.h" | 56 #include "base/metrics/user_metrics_action.h" |
| 57 #include "cc/resources/shared_bitmap.h" |
| 57 | 58 |
| 58 class GrContext; | 59 class GrContext; |
| 59 | 60 |
| 60 namespace v8 { | 61 namespace v8 { |
| 61 class Context; | 62 class Context; |
| 62 template<class T> class Local; | 63 template<class T> class Local; |
| 63 } | 64 } |
| 64 | 65 |
| 65 namespace blink { | 66 namespace blink { |
| 66 | 67 |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 const ContextAttributes&, | 452 const ContextAttributes&, |
| 452 const WebURL& topDocumentURL, | 453 const WebURL& topDocumentURL, |
| 453 WebGraphicsContext3DProvider* shareContext, | 454 WebGraphicsContext3DProvider* shareContext, |
| 454 GraphicsInfo*) { return nullptr; } | 455 GraphicsInfo*) { return nullptr; } |
| 455 | 456 |
| 456 // Returns a newly allocated and initialized offscreen context provider, | 457 // Returns a newly allocated and initialized offscreen context provider, |
| 457 // backed by the process-wide shared main thread context. Returns null if | 458 // backed by the process-wide shared main thread context. Returns null if |
| 458 // the context cannot be created or initialized. | 459 // the context cannot be created or initialized. |
| 459 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D
Provider() { return nullptr; } | 460 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D
Provider() { return nullptr; } |
| 460 | 461 |
| 462 virtual std::unique_ptr<cc::SharedBitmap> allocateSharedBitmap(const WebSize
& size) { return nullptr; } |
| 463 |
| 461 // Returns true if the platform is capable of producing an offscreen context
suitable for accelerating 2d canvas. | 464 // Returns true if the platform is capable of producing an offscreen context
suitable for accelerating 2d canvas. |
| 462 // This will return false if the platform cannot promise that contexts will
be preserved across operations like | 465 // This will return false if the platform cannot promise that contexts will
be preserved across operations like |
| 463 // locking the screen or if the platform cannot provide a context with suita
ble performance characteristics. | 466 // locking the screen or if the platform cannot provide a context with suita
ble performance characteristics. |
| 464 // | 467 // |
| 465 // This value must be checked again after a context loss event as the platfo
rm's capabilities may have changed. | 468 // This value must be checked again after a context loss event as the platfo
rm's capabilities may have changed. |
| 466 virtual bool canAccelerate2dCanvas() { return false; } | 469 virtual bool canAccelerate2dCanvas() { return false; } |
| 467 | 470 |
| 468 virtual bool isThreadedCompositingEnabled() { return false; } | 471 virtual bool isThreadedCompositingEnabled() { return false; } |
| 469 virtual bool isThreadedAnimationEnabled() { return true; } | 472 virtual bool isThreadedAnimationEnabled() { return true; } |
| 470 | 473 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 protected: | 596 protected: |
| 594 Platform(); | 597 Platform(); |
| 595 virtual ~Platform() { } | 598 virtual ~Platform() { } |
| 596 | 599 |
| 597 WebThread* m_mainThread; | 600 WebThread* m_mainThread; |
| 598 }; | 601 }; |
| 599 | 602 |
| 600 } // namespace blink | 603 } // namespace blink |
| 601 | 604 |
| 602 #endif | 605 #endif |
| OLD | NEW |