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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 1287043002: cc: Setup API to release OutputSurface from LTHClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed. Created 5 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 unified diff | Download patch
« cc/trees/thread_proxy.cc ('K') | « cc/trees/thread_proxy.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "content/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 return compositor; 208 return compositor;
209 } 209 }
210 210
211 RenderWidgetCompositor::RenderWidgetCompositor( 211 RenderWidgetCompositor::RenderWidgetCompositor(
212 RenderWidget* widget, 212 RenderWidget* widget,
213 CompositorDependencies* compositor_deps) 213 CompositorDependencies* compositor_deps)
214 : num_failed_recreate_attempts_(0), 214 : num_failed_recreate_attempts_(0),
215 widget_(widget), 215 widget_(widget),
216 compositor_deps_(compositor_deps), 216 compositor_deps_(compositor_deps),
217 layout_and_paint_async_callback_(nullptr), 217 layout_and_paint_async_callback_(nullptr),
218 weak_factory_(this) { 218 weak_factory_(this) {}
no sievers 2015/09/10 17:27:45 nit: change not needed, remove this file from patc
219 }
220 219
221 void RenderWidgetCompositor::Initialize() { 220 void RenderWidgetCompositor::Initialize() {
222 base::CommandLine* cmd = base::CommandLine::ForCurrentProcess(); 221 base::CommandLine* cmd = base::CommandLine::ForCurrentProcess();
223 222
224 cc::LayerTreeSettings settings; 223 cc::LayerTreeSettings settings;
225 224
226 // For web contents, layer transforms should scale up the contents of layers 225 // For web contents, layer transforms should scale up the contents of layers
227 // to keep content always crisp when possible. 226 // to keep content always crisp when possible.
228 settings.layer_transforms_should_scale_layer_contents = true; 227 settings.layer_transforms_should_scale_layer_contents = true;
229 228
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 return; 1040 return;
1042 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 1041 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
1043 } 1042 }
1044 1043
1045 void RenderWidgetCompositor::SetSurfaceIdNamespace( 1044 void RenderWidgetCompositor::SetSurfaceIdNamespace(
1046 uint32_t surface_id_namespace) { 1045 uint32_t surface_id_namespace) {
1047 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); 1046 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
1048 } 1047 }
1049 1048
1050 } // namespace content 1049 } // namespace content
OLDNEW
« cc/trees/thread_proxy.cc ('K') | « cc/trees/thread_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698