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

Side by Side Diff: webkit/compositor_bindings/web_layer_tree_view_impl.h

Issue 11312069: Plumbing for rendering stats subscriber. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ifdef for 3-sided patch Created 8 years, 1 month 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 | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/layer_tree_host_client.h" 9 #include "cc/layer_tree_host_client.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 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;
43 virtual void setNeedsAnimate() OVERRIDE; 43 virtual void setNeedsAnimate() OVERRIDE;
44 virtual void setNeedsRedraw() OVERRIDE; 44 virtual void setNeedsRedraw() OVERRIDE;
45 virtual bool commitRequested() const OVERRIDE; 45 virtual bool commitRequested() const OVERRIDE;
46 virtual void composite() OVERRIDE; 46 virtual void composite() OVERRIDE;
47 virtual void updateAnimations(double frameBeginTime) OVERRIDE; 47 virtual void updateAnimations(double frameBeginTime) OVERRIDE;
48 virtual bool compositeAndReadback(void *pixels, const WebRect&) OVERRIDE; 48 virtual bool compositeAndReadback(void *pixels, const WebRect&) OVERRIDE;
49 virtual void finishAllRendering() OVERRIDE; 49 virtual void finishAllRendering() OVERRIDE;
50 virtual void setDeferCommits(bool deferCommits) OVERRIDE; 50 virtual void setDeferCommits(bool deferCommits) OVERRIDE;
51 virtual void renderingStats(WebRenderingStats&) const OVERRIDE; 51 virtual void renderingStats(WebRenderingStats&) const OVERRIDE;
52 #ifdef RENDERING_STATS_SUBSCRIBER
53 virtual void startRecordingRenderingStats() const OVERRIDE { }
danakj 2012/11/02 21:15:19 If you land the webkit side first, and don't make
hartmanng 2012/11/05 16:09:30 Unless there's a strong consensus that this is the
54 virtual void stopRecordingRenderingStats(WebRenderingStats& stats) const OVE RRIDE { }
55 #endif /* ifdef RENDERING_STATS_SUBSCRIBER */
danakj 2012/11/02 21:15:19 nit: // RENDERING_STATS_SUBSCRIBER (c++ style)
hartmanng 2012/11/05 16:09:30 Done.
52 virtual void setFontAtlas(SkBitmap, WebRect asciiToRectTable[128], int fontH eight) OVERRIDE; 56 virtual void setFontAtlas(SkBitmap, WebRect asciiToRectTable[128], int fontH eight) OVERRIDE;
53 virtual void loseCompositorContext(int numTimes) OVERRIDE; 57 virtual void loseCompositorContext(int numTimes) OVERRIDE;
54 58
55 // cc::LayerTreeHostClient implementation. 59 // cc::LayerTreeHostClient implementation.
56 virtual void willBeginFrame() OVERRIDE; 60 virtual void willBeginFrame() OVERRIDE;
57 virtual void didBeginFrame() OVERRIDE; 61 virtual void didBeginFrame() OVERRIDE;
58 virtual void animate(double monotonicFrameBeginTime) OVERRIDE; 62 virtual void animate(double monotonicFrameBeginTime) OVERRIDE;
59 virtual void layout() OVERRIDE; 63 virtual void layout() OVERRIDE;
60 virtual void applyScrollAndScale(const cc::IntSize& scrollDelta, float pageS cale) OVERRIDE; 64 virtual void applyScrollAndScale(const cc::IntSize& scrollDelta, float pageS cale) OVERRIDE;
61 virtual scoped_ptr<WebCompositorOutputSurface> createOutputSurface() OVERRID E; 65 virtual scoped_ptr<WebCompositorOutputSurface> createOutputSurface() OVERRID E;
62 virtual void didRecreateOutputSurface(bool success) OVERRIDE; 66 virtual void didRecreateOutputSurface(bool success) OVERRIDE;
63 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; 67 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE;
64 virtual void willCommit() OVERRIDE; 68 virtual void willCommit() OVERRIDE;
65 virtual void didCommit() OVERRIDE; 69 virtual void didCommit() OVERRIDE;
66 virtual void didCommitAndDrawFrame() OVERRIDE; 70 virtual void didCommitAndDrawFrame() OVERRIDE;
67 virtual void didCompleteSwapBuffers() OVERRIDE; 71 virtual void didCompleteSwapBuffers() OVERRIDE;
68 virtual void scheduleComposite() OVERRIDE; 72 virtual void scheduleComposite() OVERRIDE;
69 73
70 private: 74 private:
71 WebLayerTreeViewClient* m_client; 75 WebLayerTreeViewClient* m_client;
72 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost; 76 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost;
73 }; 77 };
74 78
75 } // namespace WebKit 79 } // namespace WebKit
76 80
77 #endif // WebLayerTreeViewImpl_h 81 #endif // WebLayerTreeViewImpl_h
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698