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

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

Issue 348093004: Make cc output surface creation async (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android compile fixes Created 6 years, 2 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 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/begin_frame_args.h" 9 #include "cc/output/begin_frame_args.h"
10 #include "cc/output/context_provider.h" 10 #include "cc/output/context_provider.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 child_transform.Rotate(child_rotation_degrees); 69 child_transform.Rotate(child_rotation_degrees);
70 child_layer_->SetTransform(child_transform); 70 child_layer_->SetTransform(child_transform);
71 tree_->SetNeedsAnimate(); 71 tree_->SetNeedsAnimate();
72 } 72 }
73 73
74 void CompositorHost::Layout() {} 74 void CompositorHost::Layout() {}
75 void CompositorHost::ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, 75 void CompositorHost::ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
76 float page_scale, 76 float page_scale,
77 float top_controls_delta) {} 77 float top_controls_delta) {}
78 78
79 scoped_ptr<cc::OutputSurface> CompositorHost::CreateOutputSurface( 79 void CompositorHost::RequestNewOutputSurface(bool fallback) {
80 bool fallback) { 80 tree_->SetOutputSurface(make_scoped_ptr(new cc::OutputSurface(
81 return make_scoped_ptr( 81 new ContextProviderMojo(command_buffer_handle_.Pass()))));
82 new cc::OutputSurface(
83 new ContextProviderMojo(command_buffer_handle_.Pass())));
84 } 82 }
85 83
86 void CompositorHost::DidInitializeOutputSurface() { 84 void CompositorHost::DidInitializeOutputSurface() {
87 } 85 }
88 86
89 void CompositorHost::WillCommit() {} 87 void CompositorHost::WillCommit() {}
90 void CompositorHost::DidCommit() {} 88 void CompositorHost::DidCommit() {}
91 void CompositorHost::DidCommitAndDrawFrame() {} 89 void CompositorHost::DidCommitAndDrawFrame() {}
92 void CompositorHost::DidCompleteSwapBuffers() {} 90 void CompositorHost::DidCompleteSwapBuffers() {}
93 91
94 } // namespace examples 92 } // namespace examples
95 } // namespace mojo 93 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698