| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebLayerTreeViewImpl_h | 5 #ifndef WebLayerTreeViewImpl_h |
| 6 #define WebLayerTreeViewImpl_h | 6 #define WebLayerTreeViewImpl_h |
| 7 | 7 |
| 8 #include "CCLayerTreeHostClient.h" | 8 #include "CCLayerTreeHostClient.h" |
| 9 #include <public/WebLayerTreeView.h> | 9 #include <public/WebLayerTreeView.h> |
| 10 #include <wtf/OwnPtr.h> | 10 #include <wtf/OwnPtr.h> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 public: | 23 public: |
| 24 explicit WebLayerTreeViewImpl(WebLayerTreeViewClient*); | 24 explicit WebLayerTreeViewImpl(WebLayerTreeViewClient*); |
| 25 virtual ~WebLayerTreeViewImpl(); | 25 virtual ~WebLayerTreeViewImpl(); |
| 26 | 26 |
| 27 bool initialize(const Settings&); | 27 bool initialize(const Settings&); |
| 28 | 28 |
| 29 // WebLayerTreeView implementation. | 29 // WebLayerTreeView implementation. |
| 30 virtual void setSurfaceReady() OVERRIDE; | 30 virtual void setSurfaceReady() OVERRIDE; |
| 31 virtual void setRootLayer(const WebLayer&) OVERRIDE; | 31 virtual void setRootLayer(const WebLayer&) OVERRIDE; |
| 32 virtual void clearRootLayer() OVERRIDE; | 32 virtual void clearRootLayer() OVERRIDE; |
| 33 virtual int compositorIdentifier() OVERRIDE; | |
| 34 virtual void setViewportSize(const WebSize& layoutViewportSize, const WebSiz
e& deviceViewportSize = WebSize()) OVERRIDE; | 33 virtual void setViewportSize(const WebSize& layoutViewportSize, const WebSiz
e& deviceViewportSize = WebSize()) OVERRIDE; |
| 35 virtual WebSize layoutViewportSize() const OVERRIDE; | 34 virtual WebSize layoutViewportSize() const OVERRIDE; |
| 36 virtual WebSize deviceViewportSize() const OVERRIDE; | 35 virtual WebSize deviceViewportSize() const OVERRIDE; |
| 37 virtual void setDeviceScaleFactor(float) OVERRIDE; | 36 virtual void setDeviceScaleFactor(float) OVERRIDE; |
| 38 virtual float deviceScaleFactor() const OVERRIDE; | 37 virtual float deviceScaleFactor() const OVERRIDE; |
| 39 virtual void setBackgroundColor(WebColor) OVERRIDE; | 38 virtual void setBackgroundColor(WebColor) OVERRIDE; |
| 40 virtual void setHasTransparentBackground(bool) OVERRIDE; | 39 virtual void setHasTransparentBackground(bool) OVERRIDE; |
| 41 virtual void setVisible(bool) OVERRIDE; | 40 virtual void setVisible(bool) OVERRIDE; |
| 42 virtual void setPageScaleFactorAndLimits(float pageScaleFactor, float minimu
m, float maximum) OVERRIDE; | 41 virtual void setPageScaleFactorAndLimits(float pageScaleFactor, float minimu
m, float maximum) OVERRIDE; |
| 43 virtual void startPageScaleAnimation(const WebPoint& destination, bool useAn
chor, float newPageScale, double durationSec) OVERRIDE; | 42 virtual void startPageScaleAnimation(const WebPoint& destination, bool useAn
chor, float newPageScale, double durationSec) OVERRIDE; |
| 44 virtual void setNeedsAnimate() OVERRIDE; | 43 virtual void setNeedsAnimate() OVERRIDE; |
| 45 virtual void setNeedsRedraw() OVERRIDE; | 44 virtual void setNeedsRedraw() OVERRIDE; |
| 46 virtual bool commitRequested() const OVERRIDE; | 45 virtual bool commitRequested() const OVERRIDE; |
| 47 virtual void composite() OVERRIDE; | 46 virtual void composite() OVERRIDE; |
| 48 virtual void updateAnimations(double frameBeginTime) OVERRIDE; | 47 virtual void updateAnimations(double frameBeginTime) OVERRIDE; |
| 49 virtual bool compositeAndReadback(void *pixels, const WebRect&) OVERRIDE; | 48 virtual bool compositeAndReadback(void *pixels, const WebRect&) OVERRIDE; |
| 50 virtual void finishAllRendering() OVERRIDE; | 49 virtual void finishAllRendering() OVERRIDE; |
| 51 virtual void renderingStats(WebRenderingStats&) const OVERRIDE; | 50 virtual void renderingStats(WebRenderingStats&) const OVERRIDE; |
| 52 virtual void setFontAtlas(SkBitmap, WebRect asciiToRectTable[128], int fontH
eight) OVERRIDE; | 51 virtual void setFontAtlas(SkBitmap, WebRect asciiToRectTable[128], int fontH
eight) OVERRIDE; |
| 53 virtual void loseCompositorContext(int numTimes) OVERRIDE; | 52 virtual void loseCompositorContext(int numTimes) OVERRIDE; |
| 54 | 53 |
| 55 // WebCore::CCLayerTreeHostClient implementation. | 54 // WebCore::CCLayerTreeHostClient implementation. |
| 56 virtual void willBeginFrame() OVERRIDE; | 55 virtual void willBeginFrame() OVERRIDE; |
| 57 virtual void didBeginFrame() OVERRIDE; | 56 virtual void didBeginFrame() OVERRIDE; |
| 58 virtual void animate(double monotonicFrameBeginTime) OVERRIDE; | 57 virtual void animate(double monotonicFrameBeginTime) OVERRIDE; |
| 59 virtual void layout() OVERRIDE; | 58 virtual void layout() OVERRIDE; |
| 60 virtual void applyScrollAndScale(const WebCore::IntSize& scrollDelta, float
pageScale) OVERRIDE; | 59 virtual void applyScrollAndScale(const WebCore::IntSize& scrollDelta, float
pageScale) OVERRIDE; |
| 61 virtual PassOwnPtr<WebCompositorOutputSurface> createOutputSurface() OVERRID
E; | 60 virtual PassOwnPtr<WebCompositorOutputSurface> createOutputSurface() OVERRID
E; |
| 62 virtual void didRecreateOutputSurface(bool success) OVERRIDE; | 61 virtual void didRecreateOutputSurface(bool success) OVERRIDE; |
| 62 virtual PassOwnPtr<WebCore::CCInputHandler> createInputHandler() OVERRIDE; |
| 63 virtual void willCommit() OVERRIDE; | 63 virtual void willCommit() OVERRIDE; |
| 64 virtual void didCommit() OVERRIDE; | 64 virtual void didCommit() OVERRIDE; |
| 65 virtual void didCommitAndDrawFrame() OVERRIDE; | 65 virtual void didCommitAndDrawFrame() OVERRIDE; |
| 66 virtual void didCompleteSwapBuffers() OVERRIDE; | 66 virtual void didCompleteSwapBuffers() OVERRIDE; |
| 67 virtual void scheduleComposite() OVERRIDE; | 67 virtual void scheduleComposite() OVERRIDE; |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 WebLayerTreeViewClient* m_client; | 70 WebLayerTreeViewClient* m_client; |
| 71 OwnPtr<WebCore::CCLayerTreeHost> m_layerTreeHost; | 71 OwnPtr<WebCore::CCLayerTreeHost> m_layerTreeHost; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace WebKit | 74 } // namespace WebKit |
| 75 | 75 |
| 76 #endif // WebLayerTreeViewImpl_h | 76 #endif // WebLayerTreeViewImpl_h |
| OLD | NEW |