| 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 WebGraphicsContext3DProvider* shareContext, | 454 WebGraphicsContext3DProvider* shareContext, |
| 455 GraphicsInfo*) { return nullptr; } | 455 GraphicsInfo*) { return nullptr; } |
| 456 | 456 |
| 457 // Returns a newly allocated and initialized offscreen context provider, | 457 // Returns a newly allocated and initialized offscreen context provider, |
| 458 // 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 |
| 459 // the context cannot be created or initialized. | 459 // the context cannot be created or initialized. |
| 460 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D
Provider() { return nullptr; } | 460 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D
Provider() { return nullptr; } |
| 461 | 461 |
| 462 virtual std::unique_ptr<cc::SharedBitmap> allocateSharedBitmap(const WebSize
& size) { return nullptr; } | 462 virtual std::unique_ptr<cc::SharedBitmap> allocateSharedBitmap(const WebSize
& size) { return nullptr; } |
| 463 | 463 |
| 464 // Returns true if the platform is capable of producing an offscreen context
suitable for accelerating 2d canvas. | |
| 465 // This will return false if the platform cannot promise that contexts will
be preserved across operations like | |
| 466 // locking the screen or if the platform cannot provide a context with suita
ble performance characteristics. | |
| 467 // | |
| 468 // This value must be checked again after a context loss event as the platfo
rm's capabilities may have changed. | |
| 469 virtual bool canAccelerate2dCanvas() { return false; } | |
| 470 | |
| 471 virtual bool isThreadedCompositingEnabled() { return false; } | 464 virtual bool isThreadedCompositingEnabled() { return false; } |
| 472 virtual bool isThreadedAnimationEnabled() { return true; } | 465 virtual bool isThreadedAnimationEnabled() { return true; } |
| 473 | 466 |
| 474 virtual WebCompositorSupport* compositorSupport() { return nullptr; } | 467 virtual WebCompositorSupport* compositorSupport() { return nullptr; } |
| 475 | 468 |
| 476 virtual WebFlingAnimator* createFlingAnimator() { return nullptr; } | 469 virtual WebFlingAnimator* createFlingAnimator() { return nullptr; } |
| 477 | 470 |
| 478 // Creates a new fling animation curve instance for device |deviceSource| | 471 // Creates a new fling animation curve instance for device |deviceSource| |
| 479 // with |velocity| and already scrolled |cumulativeScroll| pixels. | 472 // with |velocity| and already scrolled |cumulativeScroll| pixels. |
| 480 virtual WebGestureCurve* createFlingAnimationCurve(WebGestureDevice deviceSo
urce, const WebFloatPoint& velocity, const WebSize& cumulativeScroll) { return n
ullptr; } | 473 virtual WebGestureCurve* createFlingAnimationCurve(WebGestureDevice deviceSo
urce, const WebFloatPoint& velocity, const WebSize& cumulativeScroll) { return n
ullptr; } |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 protected: | 589 protected: |
| 597 Platform(); | 590 Platform(); |
| 598 virtual ~Platform() { } | 591 virtual ~Platform() { } |
| 599 | 592 |
| 600 WebThread* m_mainThread; | 593 WebThread* m_mainThread; |
| 601 }; | 594 }; |
| 602 | 595 |
| 603 } // namespace blink | 596 } // namespace blink |
| 604 | 597 |
| 605 #endif | 598 #endif |
| OLD | NEW |