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

Unified Diff: mojo/cc/output_surface_mojo.cc

Issue 603663002: OutputSurfaceMojo should bind its SurfacePtr on the impl thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/cc/output_surface_mojo.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/cc/output_surface_mojo.cc
diff --git a/mojo/cc/output_surface_mojo.cc b/mojo/cc/output_surface_mojo.cc
index 37a4eb0aada833cb0c22775dc1464ce1aa54626a..fbd2c9e5b6f4641ff13a7f7d46b462c8cd67cd5c 100644
--- a/mojo/cc/output_surface_mojo.cc
+++ b/mojo/cc/output_surface_mojo.cc
@@ -20,7 +20,6 @@ OutputSurfaceMojo::OutputSurfaceMojo(
output_surface_mojo_client_(client),
surface_(surface.Pass()),
id_allocator_(id_namespace) {
- surface_.set_client(this);
capabilities_.delegated_rendering = true;
capabilities_.max_frames_pending = 1;
}
@@ -31,6 +30,11 @@ OutputSurfaceMojo::~OutputSurfaceMojo() {
void OutputSurfaceMojo::ReturnResources(Array<ReturnedResourcePtr> resources) {
}
+bool OutputSurfaceMojo::BindToClient(cc::OutputSurfaceClient* client) {
+ surface_.set_client(this);
+ return cc::OutputSurface::BindToClient(client);
+}
+
void OutputSurfaceMojo::SwapBuffers(cc::CompositorFrame* frame) {
gfx::Size frame_size =
frame->delegated_frame_data->render_pass_list.back()->output_rect.size();
« no previous file with comments | « mojo/cc/output_surface_mojo.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698