Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: webkit/compositor/WebLayerTreeViewImpl.h

Issue 10920056: Make cc_unittests and webkit_compositor_unittests executable always (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename to webkit_compositor_bindings Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/compositor/WebLayerTest.cpp ('k') | webkit/compositor/WebLayerTreeViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WebLayerTreeViewImpl_h
6 #define WebLayerTreeViewImpl_h
7
8 #include "CCLayerTreeHostClient.h"
9 #include <public/WebLayerTreeView.h>
10 #include <wtf/OwnPtr.h>
11 #include <wtf/PassOwnPtr.h>
12
13 namespace WebCore {
14 class CCLayerTreeHost;
15 }
16
17 namespace WebKit {
18 class WebLayer;
19 class WebLayerTreeViewClient;
20 class WebLayerTreeViewClientAdapter;
21
22 class WebLayerTreeViewImpl : public WebLayerTreeView, public WebCore::CCLayerTre eHostClient {
23 public:
24 explicit WebLayerTreeViewImpl(WebLayerTreeViewClient*);
25 virtual ~WebLayerTreeViewImpl();
26
27 bool initialize(const Settings&);
28
29 // WebLayerTreeView implementation.
30 virtual void setSurfaceReady() OVERRIDE;
31 virtual void setRootLayer(const WebLayer&) OVERRIDE;
32 virtual void clearRootLayer() OVERRIDE;
33 virtual int compositorIdentifier() OVERRIDE;
34 virtual void setViewportSize(const WebSize& layoutViewportSize, const WebSiz e& deviceViewportSize = WebSize()) OVERRIDE;
35 virtual WebSize layoutViewportSize() const OVERRIDE;
36 virtual WebSize deviceViewportSize() const OVERRIDE;
37 virtual void setDeviceScaleFactor(float) OVERRIDE;
38 virtual float deviceScaleFactor() const OVERRIDE;
39 virtual void setBackgroundColor(WebColor) OVERRIDE;
40 virtual void setHasTransparentBackground(bool) OVERRIDE;
41 virtual void setVisible(bool) OVERRIDE;
42 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;
44 virtual void setNeedsAnimate() OVERRIDE;
45 virtual void setNeedsRedraw() OVERRIDE;
46 virtual bool commitRequested() const OVERRIDE;
47 virtual void composite() OVERRIDE;
48 virtual void updateAnimations(double frameBeginTime) OVERRIDE;
49 virtual bool compositeAndReadback(void *pixels, const WebRect&) OVERRIDE;
50 virtual void finishAllRendering() OVERRIDE;
51 virtual void renderingStats(WebRenderingStats&) const OVERRIDE;
52 virtual void setFontAtlas(SkBitmap, WebRect asciiToRectTable[128], int fontH eight) OVERRIDE;
53 virtual void loseCompositorContext(int numTimes) OVERRIDE;
54
55 // WebCore::CCLayerTreeHostClient implementation.
56 virtual void willBeginFrame() OVERRIDE;
57 virtual void didBeginFrame() OVERRIDE;
58 virtual void animate(double monotonicFrameBeginTime) OVERRIDE;
59 virtual void layout() OVERRIDE;
60 virtual void applyScrollAndScale(const WebCore::IntSize& scrollDelta, float pageScale) OVERRIDE;
61 virtual PassOwnPtr<WebCompositorOutputSurface> createOutputSurface() OVERRID E;
62 virtual void didRecreateOutputSurface(bool success) OVERRIDE;
63 virtual void willCommit() OVERRIDE;
64 virtual void didCommit() OVERRIDE;
65 virtual void didCommitAndDrawFrame() OVERRIDE;
66 virtual void didCompleteSwapBuffers() OVERRIDE;
67 virtual void scheduleComposite() OVERRIDE;
68
69 private:
70 WebLayerTreeViewClient* m_client;
71 OwnPtr<WebCore::CCLayerTreeHost> m_layerTreeHost;
72 };
73
74 } // namespace WebKit
75
76 #endif // WebLayerTreeViewImpl_h
OLDNEW
« no previous file with comments | « webkit/compositor/WebLayerTest.cpp ('k') | webkit/compositor/WebLayerTreeViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698