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 class WebLayerTreeViewClient; | 35 class WebLayerTreeViewClient; |
36 | 36 |
37 class WebLayerTreeViewImpl : public WebCore::CCLayerTreeHost, public WebCore::CC
LayerTreeHostClient { | 37 class WebLayerTreeViewImpl : public WebCore::CCLayerTreeHost, public WebCore::CC
LayerTreeHostClient { |
38 public: | 38 public: |
39 static PassRefPtr<WebLayerTreeViewImpl> create(WebLayerTreeViewClient*, cons
t WebLayer& root, const WebLayerTreeView::Settings&); | 39 static PassRefPtr<WebLayerTreeViewImpl> create(WebLayerTreeViewClient*, cons
t WebLayer& root, const WebLayerTreeView::Settings&); |
40 | 40 |
41 private: | 41 private: |
42 WebLayerTreeViewImpl(WebLayerTreeViewClient*, const WebLayerTreeView::Settin
gs&); | 42 WebLayerTreeViewImpl(WebLayerTreeViewClient*, const WebLayerTreeView::Settin
gs&); |
43 virtual ~WebLayerTreeViewImpl(); | 43 virtual ~WebLayerTreeViewImpl(); |
44 virtual void willBeginFrame(); | 44 virtual void willBeginFrame(); |
45 virtual void updateAnimations(double frameBeginTime); | 45 virtual void updateAnimations(double monotonicFrameBeginTime); |
46 virtual void layout(); | 46 virtual void layout(); |
47 virtual void applyScrollAndScale(const WebCore::IntSize& scrollDelta, float
pageScale); | 47 virtual void applyScrollAndScale(const WebCore::IntSize& scrollDelta, float
pageScale); |
48 virtual PassRefPtr<WebCore::GraphicsContext3D> createContext(); | 48 virtual PassRefPtr<WebCore::GraphicsContext3D> createContext(); |
49 virtual void didRecreateContext(bool success); | 49 virtual void didRecreateContext(bool success); |
50 virtual void didCommit(); | 50 virtual void didCommit(); |
51 virtual void didCommitAndDrawFrame(); | 51 virtual void didCommitAndDrawFrame(); |
52 virtual void didCompleteSwapBuffers(); | 52 virtual void didCompleteSwapBuffers(); |
53 | 53 |
54 // Only used in the single threaded path. | 54 // Only used in the single threaded path. |
55 virtual void scheduleComposite(); | 55 virtual void scheduleComposite(); |
56 | 56 |
57 WebLayerTreeViewClient* m_client; | 57 WebLayerTreeViewClient* m_client; |
58 }; | 58 }; |
59 | 59 |
60 } // namespace WebKit | 60 } // namespace WebKit |
61 | 61 |
62 #endif // WebLayerTreeViewImpl_h | 62 #endif // WebLayerTreeViewImpl_h |
OLD | NEW |