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

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: 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) 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 void OnSwapBuffersAborted(); 291 void OnSwapBuffersAborted();
292 292
293 void OnUpdateVSyncParameters(base::TimeTicks timebase, 293 void OnUpdateVSyncParameters(base::TimeTicks timebase,
294 base::TimeDelta interval); 294 base::TimeDelta interval);
295 295
296 // LayerTreeHostClient implementation. 296 // LayerTreeHostClient implementation.
297 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} 297 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {}
298 virtual void DidBeginMainFrame() OVERRIDE {} 298 virtual void DidBeginMainFrame() OVERRIDE {}
299 virtual void Animate(double frame_begin_time) OVERRIDE {} 299 virtual void Animate(double frame_begin_time) OVERRIDE {}
300 virtual void Layout() OVERRIDE; 300 virtual void Layout() OVERRIDE;
301 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, 301 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
302 float page_scale) OVERRIDE {} 302 float page_scale) OVERRIDE {}
303 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) 303 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback)
304 OVERRIDE; 304 OVERRIDE;
305 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} 305 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {}
306 virtual void WillCommit() OVERRIDE {} 306 virtual void WillCommit() OVERRIDE {}
307 virtual void DidCommit() OVERRIDE; 307 virtual void DidCommit() OVERRIDE;
308 virtual void DidCommitAndDrawFrame() OVERRIDE; 308 virtual void DidCommitAndDrawFrame() OVERRIDE;
309 virtual void DidCompleteSwapBuffers() OVERRIDE; 309 virtual void DidCompleteSwapBuffers() OVERRIDE;
310 virtual scoped_refptr<cc::ContextProvider> 310 virtual scoped_refptr<cc::ContextProvider>
311 OffscreenContextProvider() OVERRIDE; 311 OffscreenContextProvider() OVERRIDE;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 bool draw_on_compositing_end_; 372 bool draw_on_compositing_end_;
373 373
374 base::WeakPtrFactory<Compositor> schedule_draw_factory_; 374 base::WeakPtrFactory<Compositor> schedule_draw_factory_;
375 375
376 DISALLOW_COPY_AND_ASSIGN(Compositor); 376 DISALLOW_COPY_AND_ASSIGN(Compositor);
377 }; 377 };
378 378
379 } // namespace ui 379 } // namespace ui
380 380
381 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 381 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« cc/trees/layer_tree_host_client.h ('K') | « content/test/web_layer_tree_view_impl_for_testing.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698