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

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, 4 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
« no previous file with comments | « content/shell/webkit_test_controller.cc ('k') | ui/compositor/compositor.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 (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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 void OnUpdateVSyncParameters(base::TimeTicks timebase, 373 void OnUpdateVSyncParameters(base::TimeTicks timebase,
374 base::TimeDelta interval); 374 base::TimeDelta interval);
375 375
376 // LayerTreeHostClient implementation. 376 // LayerTreeHostClient implementation.
377 virtual void WillBeginFrame() OVERRIDE {} 377 virtual void WillBeginFrame() OVERRIDE {}
378 virtual void DidBeginFrame() OVERRIDE {} 378 virtual void DidBeginFrame() OVERRIDE {}
379 virtual void Animate(double frame_begin_time) OVERRIDE {} 379 virtual void Animate(double frame_begin_time) OVERRIDE {}
380 virtual void Layout() OVERRIDE; 380 virtual void Layout() OVERRIDE;
381 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, 381 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta,
382 float page_scale) OVERRIDE {} 382 float page_scale) OVERRIDE {}
383 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface() OVERRIDE; 383 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback)
384 OVERRIDE;
384 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} 385 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {}
385 virtual void WillCommit() OVERRIDE {} 386 virtual void WillCommit() OVERRIDE {}
386 virtual void DidCommit() OVERRIDE; 387 virtual void DidCommit() OVERRIDE;
387 virtual void DidCommitAndDrawFrame() OVERRIDE; 388 virtual void DidCommitAndDrawFrame() OVERRIDE;
388 virtual void DidCompleteSwapBuffers() OVERRIDE; 389 virtual void DidCompleteSwapBuffers() OVERRIDE;
389 virtual void ScheduleComposite() OVERRIDE; 390 virtual void ScheduleComposite() OVERRIDE;
390 virtual scoped_refptr<cc::ContextProvider> 391 virtual scoped_refptr<cc::ContextProvider>
391 OffscreenContextProviderForMainThread() OVERRIDE; 392 OffscreenContextProviderForMainThread() OVERRIDE;
392 virtual scoped_refptr<cc::ContextProvider> 393 virtual scoped_refptr<cc::ContextProvider>
393 OffscreenContextProviderForCompositorThread() OVERRIDE; 394 OffscreenContextProviderForCompositorThread() OVERRIDE;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 bool disable_schedule_composite_; 441 bool disable_schedule_composite_;
441 442
442 CompositorLock* compositor_lock_; 443 CompositorLock* compositor_lock_;
443 444
444 DISALLOW_COPY_AND_ASSIGN(Compositor); 445 DISALLOW_COPY_AND_ASSIGN(Compositor);
445 }; 446 };
446 447
447 } // namespace ui 448 } // namespace ui
448 449
449 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 450 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/shell/webkit_test_controller.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698