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

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

Issue 2707243005: Discard compositor frames from unloaded web content (Closed)
Patch Set: Add default value for source ID in frame metadata Created 3 years, 9 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
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_frame_impl.cc » ('j') | 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <limits> 10 #include <limits>
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 1123
1124 void RenderWidgetCompositor::SetDeviceColorSpace( 1124 void RenderWidgetCompositor::SetDeviceColorSpace(
1125 const gfx::ColorSpace& color_space) { 1125 const gfx::ColorSpace& color_space) {
1126 layer_tree_host_->SetDeviceColorSpace(color_space); 1126 layer_tree_host_->SetDeviceColorSpace(color_space);
1127 } 1127 }
1128 1128
1129 void RenderWidgetCompositor::SetIsForOopif(bool is_for_oopif) { 1129 void RenderWidgetCompositor::SetIsForOopif(bool is_for_oopif) {
1130 is_for_oopif_ = is_for_oopif; 1130 is_for_oopif_ = is_for_oopif;
1131 } 1131 }
1132 1132
1133 void RenderWidgetCompositor::SetContentSourceId(uint32_t id) {
1134 layer_tree_host_->SetContentSourceId(id);
1135 }
1136
1133 } // namespace content 1137 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698