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

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

Issue 2242653002: blimp: Make Blimp client use a Display for compositing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: blimpdisplay: . Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_manager.h" 5 #include "blimp/client/feature/compositor/blimp_compositor_manager.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "blimp/client/core/compositor/blob_image_serialization_processor.h" 9 #include "blimp/client/core/compositor/blob_image_serialization_processor.h"
10 #include "blimp/client/feature/compositor/blimp_layer_tree_settings.h" 10 #include "blimp/client/feature/compositor/blimp_layer_tree_settings.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // TODO(khushalsagar): The server should selectively send only those 129 // TODO(khushalsagar): The server should selectively send only those
130 // LayerTreeSettings which should remain consistent across the server and 130 // LayerTreeSettings which should remain consistent across the server and
131 // client. Since it currently overrides all settings, ignore them. 131 // client. Since it currently overrides all settings, ignore them.
132 // See crbug/577985. 132 // See crbug/577985.
133 GenerateLayerTreeSettings(settings_.get()); 133 GenerateLayerTreeSettings(settings_.get());
134 settings_ 134 settings_
135 ->abort_commit_before_output_surface_creation = false; 135 ->abort_commit_before_output_surface_creation = false;
136 settings_->renderer_settings.buffer_to_texture_target_map = 136 settings_->renderer_settings.buffer_to_texture_target_map =
137 BlimpGpuMemoryBufferManager::GetDefaultBufferToTextureTargetMap(); 137 BlimpGpuMemoryBufferManager::GetDefaultBufferToTextureTargetMap();
138 settings_->use_output_surface_begin_frame_source = true;
138 } 139 }
139 140
140 return settings_.get(); 141 return settings_.get();
141 } 142 }
142 143
143 void BlimpCompositorManager::DidCompleteSwapBuffers() { 144 void BlimpCompositorManager::DidCompleteSwapBuffers() {
144 DCHECK(client_); 145 DCHECK(client_);
145 client_->OnSwapBuffersCompleted(); 146 client_->OnSwapBuffersCompleted();
146 } 147 }
147 148
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 206
206 BlimpCompositor* BlimpCompositorManager::GetCompositor(int render_widget_id) { 207 BlimpCompositor* BlimpCompositorManager::GetCompositor(int render_widget_id) {
207 CompositorMap::const_iterator it = compositors_.find(render_widget_id); 208 CompositorMap::const_iterator it = compositors_.find(render_widget_id);
208 if (it == compositors_.end()) 209 if (it == compositors_.end())
209 return nullptr; 210 return nullptr;
210 return it->second.get(); 211 return it->second.get();
211 } 212 }
212 213
213 } // namespace client 214 } // namespace client
214 } // namespace blimp 215 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698