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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.h

Issue 132163009: [#6]Pass gfx structs by const ref (gfx::Vector2d) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 virtual void setShowPaintRects(bool show); 115 virtual void setShowPaintRects(bool show);
116 virtual void setShowDebugBorders(bool show); 116 virtual void setShowDebugBorders(bool show);
117 virtual void setContinuousPaintingEnabled(bool enabled); 117 virtual void setContinuousPaintingEnabled(bool enabled);
118 virtual void setShowScrollBottleneckRects(bool show); 118 virtual void setShowScrollBottleneckRects(bool show);
119 119
120 // cc::LayerTreeHostClient implementation. 120 // cc::LayerTreeHostClient implementation.
121 virtual void WillBeginMainFrame(int frame_id) OVERRIDE; 121 virtual void WillBeginMainFrame(int frame_id) OVERRIDE;
122 virtual void DidBeginMainFrame() OVERRIDE; 122 virtual void DidBeginMainFrame() OVERRIDE;
123 virtual void Animate(double frame_begin_time) OVERRIDE; 123 virtual void Animate(double frame_begin_time) OVERRIDE;
124 virtual void Layout() OVERRIDE; 124 virtual void Layout() OVERRIDE;
125 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, 125 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
126 float page_scale) OVERRIDE; 126 float page_scale) OVERRIDE;
127 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) 127 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback)
128 OVERRIDE; 128 OVERRIDE;
129 virtual void DidInitializeOutputSurface(bool success) OVERRIDE; 129 virtual void DidInitializeOutputSurface(bool success) OVERRIDE;
130 virtual void WillCommit() OVERRIDE; 130 virtual void WillCommit() OVERRIDE;
131 virtual void DidCommit() OVERRIDE; 131 virtual void DidCommit() OVERRIDE;
132 virtual void DidCommitAndDrawFrame() OVERRIDE; 132 virtual void DidCommitAndDrawFrame() OVERRIDE;
133 virtual void DidCompleteSwapBuffers() OVERRIDE; 133 virtual void DidCompleteSwapBuffers() OVERRIDE;
134 virtual scoped_refptr<cc::ContextProvider> 134 virtual scoped_refptr<cc::ContextProvider>
135 OffscreenContextProvider() OVERRIDE; 135 OffscreenContextProvider() OVERRIDE;
(...skipping 12 matching lines...) Expand all
148 148
149 bool threaded_; 149 bool threaded_;
150 bool suppress_schedule_composite_; 150 bool suppress_schedule_composite_;
151 RenderWidget* widget_; 151 RenderWidget* widget_;
152 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 152 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
153 }; 153 };
154 154
155 } // namespace content 155 } // namespace content
156 156
157 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 157 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698