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

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

Issue 11189037: toggle FPS counter in compositor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: added check for accelerated compositing, removed 'showFPSCounter' from settings, command-line flag … Created 8 years, 2 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
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 setNeedsAnimate() OVERRIDE; 42 virtual void setNeedsAnimate() OVERRIDE;
43 virtual void setNeedsRedraw() OVERRIDE; 43 virtual void setNeedsRedraw() OVERRIDE;
44 virtual bool commitRequested() const OVERRIDE; 44 virtual bool commitRequested() const OVERRIDE;
45 virtual void composite() OVERRIDE; 45 virtual void composite() OVERRIDE;
46 virtual void updateAnimations(double frameBeginTime) OVERRIDE; 46 virtual void updateAnimations(double frameBeginTime) OVERRIDE;
47 virtual bool compositeAndReadback(void *pixels, const WebRect&) OVERRIDE; 47 virtual bool compositeAndReadback(void *pixels, const WebRect&) OVERRIDE;
48 virtual void finishAllRendering() OVERRIDE; 48 virtual void finishAllRendering() OVERRIDE;
49 virtual void renderingStats(WebRenderingStats&) const OVERRIDE; 49 virtual void renderingStats(WebRenderingStats&) const OVERRIDE;
50 virtual void setFontAtlas(SkBitmap, WebRect asciiToRectTable[128], int fontH eight) OVERRIDE; 50 virtual void setFontAtlas(SkBitmap, WebRect asciiToRectTable[128], int fontH eight) OVERRIDE;
51 virtual void loseCompositorContext(int numTimes) OVERRIDE; 51 virtual void loseCompositorContext(int numTimes) OVERRIDE;
52 virtual void setShowFPSCounter(bool show) OVERRIDE;
53 virtual bool hasFontAtlas() OVERRIDE;
nduca 2012/10/20 19:49:41 You're going to need to set up your patches to lan
nduca 2012/10/20 19:49:41 Also, put hasFontAtlas next to the setFontAtlas fu
52 54
53 // cc::CCLayerTreeHostClient implementation. 55 // cc::CCLayerTreeHostClient implementation.
54 virtual void willBeginFrame() OVERRIDE; 56 virtual void willBeginFrame() OVERRIDE;
55 virtual void didBeginFrame() OVERRIDE; 57 virtual void didBeginFrame() OVERRIDE;
56 virtual void animate(double monotonicFrameBeginTime) OVERRIDE; 58 virtual void animate(double monotonicFrameBeginTime) OVERRIDE;
57 virtual void layout() OVERRIDE; 59 virtual void layout() OVERRIDE;
58 virtual void applyScrollAndScale(const cc::IntSize& scrollDelta, float pageS cale) OVERRIDE; 60 virtual void applyScrollAndScale(const cc::IntSize& scrollDelta, float pageS cale) OVERRIDE;
59 virtual scoped_ptr<WebCompositorOutputSurface> createOutputSurface() OVERRID E; 61 virtual scoped_ptr<WebCompositorOutputSurface> createOutputSurface() OVERRID E;
60 virtual void didRecreateOutputSurface(bool success) OVERRIDE; 62 virtual void didRecreateOutputSurface(bool success) OVERRIDE;
61 virtual scoped_ptr<cc::CCInputHandler> createInputHandler() OVERRIDE; 63 virtual scoped_ptr<cc::CCInputHandler> createInputHandler() OVERRIDE;
62 virtual void willCommit() OVERRIDE; 64 virtual void willCommit() OVERRIDE;
63 virtual void didCommit() OVERRIDE; 65 virtual void didCommit() OVERRIDE;
64 virtual void didCommitAndDrawFrame() OVERRIDE; 66 virtual void didCommitAndDrawFrame() OVERRIDE;
65 virtual void didCompleteSwapBuffers() OVERRIDE; 67 virtual void didCompleteSwapBuffers() OVERRIDE;
66 virtual void scheduleComposite() OVERRIDE; 68 virtual void scheduleComposite() OVERRIDE;
67 69
68 private: 70 private:
69 WebLayerTreeViewClient* m_client; 71 WebLayerTreeViewClient* m_client;
70 scoped_ptr<cc::CCLayerTreeHost> m_layerTreeHost; 72 scoped_ptr<cc::CCLayerTreeHost> m_layerTreeHost;
73 bool m_hasFontAtlas;
71 }; 74 };
72 75
73 } // namespace WebKit 76 } // namespace WebKit
74 77
75 #endif // WebLayerTreeViewImpl_h 78 #endif // WebLayerTreeViewImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698