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

Side by Side Diff: ui/compositor/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: rebase on TOT Created 6 years, 10 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
« no previous file with comments | « mojo/examples/compositor_app/compositor_host.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_COMPOSITOR_COMPOSITOR_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_
6 #define UI_COMPOSITOR_COMPOSITOR_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 void OnSwapBuffersAborted(); 245 void OnSwapBuffersAborted();
246 246
247 void OnUpdateVSyncParameters(base::TimeTicks timebase, 247 void OnUpdateVSyncParameters(base::TimeTicks timebase,
248 base::TimeDelta interval); 248 base::TimeDelta interval);
249 249
250 // LayerTreeHostClient implementation. 250 // LayerTreeHostClient implementation.
251 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} 251 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {}
252 virtual void DidBeginMainFrame() OVERRIDE {} 252 virtual void DidBeginMainFrame() OVERRIDE {}
253 virtual void Animate(double frame_begin_time) OVERRIDE {} 253 virtual void Animate(double frame_begin_time) OVERRIDE {}
254 virtual void Layout() OVERRIDE; 254 virtual void Layout() OVERRIDE;
255 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, 255 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
256 float page_scale) OVERRIDE {} 256 float page_scale) OVERRIDE {}
257 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) 257 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback)
258 OVERRIDE; 258 OVERRIDE;
259 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} 259 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {}
260 virtual void WillCommit() OVERRIDE {} 260 virtual void WillCommit() OVERRIDE {}
261 virtual void DidCommit() OVERRIDE; 261 virtual void DidCommit() OVERRIDE;
262 virtual void DidCommitAndDrawFrame() OVERRIDE; 262 virtual void DidCommitAndDrawFrame() OVERRIDE;
263 virtual void DidCompleteSwapBuffers() OVERRIDE; 263 virtual void DidCompleteSwapBuffers() OVERRIDE;
264 virtual scoped_refptr<cc::ContextProvider> 264 virtual scoped_refptr<cc::ContextProvider>
265 OffscreenContextProvider() OVERRIDE; 265 OffscreenContextProvider() OVERRIDE;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 bool draw_on_compositing_end_; 326 bool draw_on_compositing_end_;
327 327
328 base::WeakPtrFactory<Compositor> schedule_draw_factory_; 328 base::WeakPtrFactory<Compositor> schedule_draw_factory_;
329 329
330 DISALLOW_COPY_AND_ASSIGN(Compositor); 330 DISALLOW_COPY_AND_ASSIGN(Compositor);
331 }; 331 };
332 332
333 } // namespace ui 333 } // namespace ui
334 334
335 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 335 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « mojo/examples/compositor_app/compositor_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698