OLD | NEW |
---|---|
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 | 99 |
100 void BlimpCompositor::DidInitializeOutputSurface() { | 100 void BlimpCompositor::DidInitializeOutputSurface() { |
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 VLOG(0) << "commit completed, current count " << ++commit_count_; | |
Kevin M
2016/05/10 23:54:24
nit: Use proper capitalization and a trailing peri
shaktisahu
2016/05/16 05:41:38
Done.
| |
111 } | |
110 | 112 |
111 void BlimpCompositor::DidCompleteSwapBuffers() { | 113 void BlimpCompositor::DidCompleteSwapBuffers() { |
112 client_->DidCompleteSwapBuffers(); | 114 client_->DidCompleteSwapBuffers(); |
113 } | 115 } |
114 | 116 |
115 void BlimpCompositor::DidCompletePageScaleAnimation() {} | 117 void BlimpCompositor::DidCompletePageScaleAnimation() {} |
116 | 118 |
117 void BlimpCompositor::SetProtoReceiver(ProtoReceiver* receiver) { | 119 void BlimpCompositor::SetProtoReceiver(ProtoReceiver* receiver) { |
118 remote_proto_channel_receiver_ = receiver; | 120 remote_proto_channel_receiver_ = receiver; |
119 } | 121 } |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
255 BlimpContextProvider::Create(window_, | 257 BlimpContextProvider::Create(window_, |
256 client_->GetGpuMemoryBufferManager()); | 258 client_->GetGpuMemoryBufferManager()); |
257 | 259 |
258 host_->SetOutputSurface( | 260 host_->SetOutputSurface( |
259 base::WrapUnique(new BlimpOutputSurface(context_provider))); | 261 base::WrapUnique(new BlimpOutputSurface(context_provider))); |
260 output_surface_request_pending_ = false; | 262 output_surface_request_pending_ = false; |
261 } | 263 } |
262 | 264 |
263 } // namespace client | 265 } // namespace client |
264 } // namespace blimp | 266 } // namespace blimp |
OLD | NEW |