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

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

Issue 11418259: cc: Toggling paint rects with the WebLayerTreeView::setShowPaintRects() API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 170991 Created 8 years 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
« no previous file with comments | « no previous file | webkit/compositor_bindings/web_layer_tree_view_impl.cc » ('j') | 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual void setNeedsAnimate() OVERRIDE; 45 virtual void setNeedsAnimate() OVERRIDE;
46 virtual void setNeedsRedraw() OVERRIDE; 46 virtual void setNeedsRedraw() OVERRIDE;
47 virtual bool commitRequested() const OVERRIDE; 47 virtual bool commitRequested() const OVERRIDE;
48 virtual void composite() OVERRIDE; 48 virtual void composite() OVERRIDE;
49 virtual void updateAnimations(double frameBeginTime) OVERRIDE; 49 virtual void updateAnimations(double frameBeginTime) OVERRIDE;
50 virtual bool compositeAndReadback(void *pixels, const WebRect&) OVERRIDE; 50 virtual bool compositeAndReadback(void *pixels, const WebRect&) OVERRIDE;
51 virtual void finishAllRendering() OVERRIDE; 51 virtual void finishAllRendering() OVERRIDE;
52 virtual void setDeferCommits(bool deferCommits) OVERRIDE; 52 virtual void setDeferCommits(bool deferCommits) OVERRIDE;
53 virtual void renderingStats(WebRenderingStats&) const OVERRIDE; 53 virtual void renderingStats(WebRenderingStats&) const OVERRIDE;
54 virtual void setShowFPSCounter(bool show); 54 virtual void setShowFPSCounter(bool show);
55 virtual void setShowPaintRects(bool show);
55 virtual void loseCompositorContext(int numTimes) OVERRIDE; 56 virtual void loseCompositorContext(int numTimes) OVERRIDE;
56 57
57 // cc::LayerTreeHostClient implementation. 58 // cc::LayerTreeHostClient implementation.
58 virtual void willBeginFrame() OVERRIDE; 59 virtual void willBeginFrame() OVERRIDE;
59 virtual void didBeginFrame() OVERRIDE; 60 virtual void didBeginFrame() OVERRIDE;
60 virtual void animate(double monotonicFrameBeginTime) OVERRIDE; 61 virtual void animate(double monotonicFrameBeginTime) OVERRIDE;
61 virtual void layout() OVERRIDE; 62 virtual void layout() OVERRIDE;
62 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, float pageScale) OVERRIDE; 63 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, float pageScale) OVERRIDE;
63 virtual scoped_ptr<WebCompositorOutputSurface> createOutputSurface() OVERRID E; 64 virtual scoped_ptr<WebCompositorOutputSurface> createOutputSurface() OVERRID E;
64 virtual void didRecreateOutputSurface(bool success) OVERRIDE; 65 virtual void didRecreateOutputSurface(bool success) OVERRIDE;
65 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; 66 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE;
66 virtual void willCommit() OVERRIDE; 67 virtual void willCommit() OVERRIDE;
67 virtual void didCommit() OVERRIDE; 68 virtual void didCommit() OVERRIDE;
68 virtual void didCommitAndDrawFrame() OVERRIDE; 69 virtual void didCommitAndDrawFrame() OVERRIDE;
69 virtual void didCompleteSwapBuffers() OVERRIDE; 70 virtual void didCompleteSwapBuffers() OVERRIDE;
70 virtual void scheduleComposite() OVERRIDE; 71 virtual void scheduleComposite() OVERRIDE;
71 virtual scoped_ptr<cc::FontAtlas> createFontAtlas(); 72 virtual scoped_ptr<cc::FontAtlas> createFontAtlas();
72 73
73 private: 74 private:
74 WebLayerTreeViewClient* m_client; 75 WebLayerTreeViewClient* m_client;
75 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost; 76 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost;
76 }; 77 };
77 78
78 } // namespace WebKit 79 } // namespace WebKit
79 80
80 #endif // WebLayerTreeViewImpl_h 81 #endif // WebLayerTreeViewImpl_h
OLDNEW
« no previous file with comments | « no previous file | webkit/compositor_bindings/web_layer_tree_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698