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

Side by Side Diff: mojo/examples/compositor_app/compositor_host.cc

Issue 256573003: cc: Remove the capability to give up and leave compositing mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « mojo/examples/compositor_app/compositor_host.h ('k') | ui/compositor/compositor.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "mojo/examples/compositor_app/compositor_host.h" 5 #include "mojo/examples/compositor_app/compositor_host.h"
6 6
7 #include "cc/layers/layer.h" 7 #include "cc/layers/layer.h"
8 #include "cc/layers/solid_color_layer.h" 8 #include "cc/layers/solid_color_layer.h"
9 #include "cc/output/context_provider.h" 9 #include "cc/output/context_provider.h"
10 #include "cc/output/output_surface.h" 10 #include "cc/output/output_surface.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void CompositorHost::Layout() {} 69 void CompositorHost::Layout() {}
70 void CompositorHost::ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, 70 void CompositorHost::ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
71 float page_scale) {} 71 float page_scale) {}
72 72
73 scoped_ptr<cc::OutputSurface> CompositorHost::CreateOutputSurface( 73 scoped_ptr<cc::OutputSurface> CompositorHost::CreateOutputSurface(
74 bool fallback) { 74 bool fallback) {
75 return make_scoped_ptr( 75 return make_scoped_ptr(
76 new cc::OutputSurface(new MojoContextProvider(gl_pipe_.Pass()))); 76 new cc::OutputSurface(new MojoContextProvider(gl_pipe_.Pass())));
77 } 77 }
78 78
79 void CompositorHost::DidInitializeOutputSurface(bool success) {} 79 void CompositorHost::DidInitializeOutputSurface() {
80 }
80 81
81 void CompositorHost::WillCommit() {} 82 void CompositorHost::WillCommit() {}
82 void CompositorHost::DidCommit() {} 83 void CompositorHost::DidCommit() {}
83 void CompositorHost::DidCommitAndDrawFrame() {} 84 void CompositorHost::DidCommitAndDrawFrame() {}
84 void CompositorHost::DidCompleteSwapBuffers() {} 85 void CompositorHost::DidCompleteSwapBuffers() {}
85 86
86 } // namespace examples 87 } // namespace examples
87 } // namespace mojo 88 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/examples/compositor_app/compositor_host.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698