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

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: 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
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 { }
54 virtual void stopRecordingRenderingStats(WebRenderingStats& stats) const OVE RRIDE { }
55 #endif // RENDERING_STATS_SUBSCRIBER
52 virtual void setFontAtlas(SkBitmap, WebRect asciiToRectTable[128], int fontH eight); 56 virtual void setFontAtlas(SkBitmap, WebRect asciiToRectTable[128], int fontH eight);
53 virtual void setFontAtlas(WebRect asciiToRectTable[128], const SkBitmap&, in t fontHeight); 57 virtual void setFontAtlas(WebRect asciiToRectTable[128], const SkBitmap&, in t fontHeight);
54 virtual void loseCompositorContext(int numTimes) OVERRIDE; 58 virtual void loseCompositorContext(int numTimes) OVERRIDE;
55 59
56 // cc::LayerTreeHostClient implementation. 60 // cc::LayerTreeHostClient implementation.
57 virtual void willBeginFrame() OVERRIDE; 61 virtual void willBeginFrame() OVERRIDE;
58 virtual void didBeginFrame() OVERRIDE; 62 virtual void didBeginFrame() OVERRIDE;
59 virtual void animate(double monotonicFrameBeginTime) OVERRIDE; 63 virtual void animate(double monotonicFrameBeginTime) OVERRIDE;
60 virtual void layout() OVERRIDE; 64 virtual void layout() OVERRIDE;
61 virtual void applyScrollAndScale(const cc::IntSize& scrollDelta, float pageS cale) OVERRIDE; 65 virtual void applyScrollAndScale(const cc::IntSize& scrollDelta, float pageS cale) OVERRIDE;
62 virtual scoped_ptr<WebCompositorOutputSurface> createOutputSurface() OVERRID E; 66 virtual scoped_ptr<WebCompositorOutputSurface> createOutputSurface() OVERRID E;
63 virtual void didRecreateOutputSurface(bool success) OVERRIDE; 67 virtual void didRecreateOutputSurface(bool success) OVERRIDE;
64 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; 68 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE;
65 virtual void willCommit() OVERRIDE; 69 virtual void willCommit() OVERRIDE;
66 virtual void didCommit() OVERRIDE; 70 virtual void didCommit() OVERRIDE;
67 virtual void didCommitAndDrawFrame() OVERRIDE; 71 virtual void didCommitAndDrawFrame() OVERRIDE;
68 virtual void didCompleteSwapBuffers() OVERRIDE; 72 virtual void didCompleteSwapBuffers() OVERRIDE;
69 virtual void scheduleComposite() OVERRIDE; 73 virtual void scheduleComposite() OVERRIDE;
70 74
71 private: 75 private:
72 WebLayerTreeViewClient* m_client; 76 WebLayerTreeViewClient* m_client;
73 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost; 77 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost;
74 }; 78 };
75 79
76 } // namespace WebKit 80 } // namespace WebKit
77 81
78 #endif // WebLayerTreeViewImpl_h 82 #endif // WebLayerTreeViewImpl_h
OLDNEW
« content/renderer/gpu/gpu_benchmarking_extension.cc ('K') | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698