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

Side by Side Diff: blimp/client/feature/compositor/blimp_compositor.cc

Issue 1925863003: Changed Blimp client to start with white screen before drawing contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge origin/master Created 4 years, 7 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "blimp/client/feature/compositor/blimp_compositor.h" 5 #include "blimp/client/feature/compositor/blimp_compositor.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/numerics/safe_conversions.h" 10 #include "base/numerics/safe_conversions.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 102
103 void BlimpCompositor::DidFailToInitializeOutputSurface() {} 103 void BlimpCompositor::DidFailToInitializeOutputSurface() {}
104 104
105 void BlimpCompositor::WillCommit() {} 105 void BlimpCompositor::WillCommit() {}
106 106
107 void BlimpCompositor::DidCommit() {} 107 void BlimpCompositor::DidCommit() {}
108 108
109 void BlimpCompositor::DidCommitAndDrawFrame() {} 109 void BlimpCompositor::DidCommitAndDrawFrame() {}
110 110
111 void BlimpCompositor::DidCompleteSwapBuffers() {} 111 void BlimpCompositor::DidCompleteSwapBuffers() {
112 client_->DidCompleteSwapBuffers();
113 }
112 114
113 void BlimpCompositor::DidCompletePageScaleAnimation() {} 115 void BlimpCompositor::DidCompletePageScaleAnimation() {}
114 116
115 void BlimpCompositor::SetProtoReceiver(ProtoReceiver* receiver) { 117 void BlimpCompositor::SetProtoReceiver(ProtoReceiver* receiver) {
116 remote_proto_channel_receiver_ = receiver; 118 remote_proto_channel_receiver_ = receiver;
117 } 119 }
118 120
119 void BlimpCompositor::SendCompositorProto( 121 void BlimpCompositor::SendCompositorProto(
120 const cc::proto::CompositorMessage& proto) { 122 const cc::proto::CompositorMessage& proto) {
121 client_->SendCompositorMessage(render_widget_id_, proto); 123 client_->SendCompositorMessage(render_widget_id_, proto);
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 BlimpContextProvider::Create(window_, 255 BlimpContextProvider::Create(window_,
254 client_->GetGpuMemoryBufferManager()); 256 client_->GetGpuMemoryBufferManager());
255 257
256 host_->SetOutputSurface( 258 host_->SetOutputSurface(
257 base::WrapUnique(new BlimpOutputSurface(context_provider))); 259 base::WrapUnique(new BlimpOutputSurface(context_provider)));
258 output_surface_request_pending_ = false; 260 output_surface_request_pending_ = false;
259 } 261 }
260 262
261 } // namespace client 263 } // namespace client
262 } // namespace blimp 264 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/feature/compositor/blimp_compositor.h ('k') | blimp/client/feature/compositor/blimp_compositor_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698