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

Side by Side Diff: ui/compositor/compositor.h

Issue 19267016: Add a flag to allow renderer to use software compositor when GL compositor doesn't work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 void OnUpdateVSyncParameters(base::TimeTicks timebase, 387 void OnUpdateVSyncParameters(base::TimeTicks timebase,
388 base::TimeDelta interval); 388 base::TimeDelta interval);
389 389
390 // LayerTreeHostClient implementation. 390 // LayerTreeHostClient implementation.
391 virtual void WillBeginFrame() OVERRIDE {} 391 virtual void WillBeginFrame() OVERRIDE {}
392 virtual void DidBeginFrame() OVERRIDE {} 392 virtual void DidBeginFrame() OVERRIDE {}
393 virtual void Animate(double frame_begin_time) OVERRIDE {} 393 virtual void Animate(double frame_begin_time) OVERRIDE {}
394 virtual void Layout() OVERRIDE; 394 virtual void Layout() OVERRIDE;
395 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, 395 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta,
396 float page_scale) OVERRIDE {} 396 float page_scale) OVERRIDE {}
397 virtual scoped_ptr<cc::OutputSurface> 397 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback)
398 CreateOutputSurface() OVERRIDE; 398 OVERRIDE;
399 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} 399 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {}
400 virtual void WillCommit() OVERRIDE {} 400 virtual void WillCommit() OVERRIDE {}
401 virtual void DidCommit() OVERRIDE; 401 virtual void DidCommit() OVERRIDE;
402 virtual void DidCommitAndDrawFrame() OVERRIDE; 402 virtual void DidCommitAndDrawFrame() OVERRIDE;
403 virtual void DidCompleteSwapBuffers() OVERRIDE; 403 virtual void DidCompleteSwapBuffers() OVERRIDE;
404 virtual void ScheduleComposite() OVERRIDE; 404 virtual void ScheduleComposite() OVERRIDE;
405 virtual scoped_refptr<cc::ContextProvider> 405 virtual scoped_refptr<cc::ContextProvider>
406 OffscreenContextProviderForMainThread() OVERRIDE; 406 OffscreenContextProviderForMainThread() OVERRIDE;
407 virtual scoped_refptr<cc::ContextProvider> 407 virtual scoped_refptr<cc::ContextProvider>
408 OffscreenContextProviderForCompositorThread() OVERRIDE; 408 OffscreenContextProviderForCompositorThread() OVERRIDE;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 bool disable_schedule_composite_; 455 bool disable_schedule_composite_;
456 456
457 CompositorLock* compositor_lock_; 457 CompositorLock* compositor_lock_;
458 458
459 DISALLOW_COPY_AND_ASSIGN(Compositor); 459 DISALLOW_COPY_AND_ASSIGN(Compositor);
460 }; 460 };
461 461
462 } // namespace ui 462 } // namespace ui
463 463
464 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 464 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698