| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 public: | 35 public: |
| 36 // Indicates to the embedder that the compositor is about to begin a | 36 // Indicates to the embedder that the compositor is about to begin a |
| 37 // frame. This is is a signal to flow control mechanisms that a frame is | 37 // frame. This is is a signal to flow control mechanisms that a frame is |
| 38 // beginning. This call will be followed by updateAnimations and then | 38 // beginning. This call will be followed by updateAnimations and then |
| 39 // layout, which should be used for actual animation or tree manipulation | 39 // layout, which should be used for actual animation or tree manipulation |
| 40 // tasks. FIXME: make pure virtual once upstream deps are satisfied. | 40 // tasks. FIXME: make pure virtual once upstream deps are satisfied. |
| 41 virtual void willBeginFrame() { } | 41 virtual void willBeginFrame() { } |
| 42 | 42 |
| 43 // Updates animation and layout. These are called before the compositing | 43 // Updates animation and layout. These are called before the compositing |
| 44 // pass so that layers can be updated at the given frame time. | 44 // pass so that layers can be updated at the given frame time. |
| 45 virtual void updateAnimations(double frameBeginTime) = 0; | 45 virtual void updateAnimations(double monotonicFrameBeginTime) = 0; |
| 46 virtual void layout() = 0; | 46 virtual void layout() = 0; |
| 47 | 47 |
| 48 // Applies a scroll delta to the root layer, which is bundled with a page | 48 // Applies a scroll delta to the root layer, which is bundled with a page |
| 49 // scale factor that may apply a CSS transform on the whole document (used | 49 // scale factor that may apply a CSS transform on the whole document (used |
| 50 // for mobile-device pinch zooming). This is triggered by events sent to the | 50 // for mobile-device pinch zooming). This is triggered by events sent to the |
| 51 // compositor thread through the WebCompositor interface. | 51 // compositor thread through the WebCompositor interface. |
| 52 virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFact
or) = 0; | 52 virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFact
or) = 0; |
| 53 | 53 |
| 54 // Creates a 3D context suitable for the compositing. This may be called | 54 // Creates a 3D context suitable for the compositing. This may be called |
| 55 // more than once if the context gets lost. | 55 // more than once if the context gets lost. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 79 // internally schedule a compositing pass when needed. | 79 // internally schedule a compositing pass when needed. |
| 80 virtual void scheduleComposite() = 0; | 80 virtual void scheduleComposite() = 0; |
| 81 | 81 |
| 82 protected: | 82 protected: |
| 83 virtual ~WebLayerTreeViewClient() { } | 83 virtual ~WebLayerTreeViewClient() { } |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace WebKit | 86 } // namespace WebKit |
| 87 | 87 |
| 88 #endif // WebLayerTreeViewClient_h | 88 #endif // WebLayerTreeViewClient_h |
| OLD | NEW |