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

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

Issue 1129883003: Pass Surface ID namespace to renderer compositors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mac bug. Created 5 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 (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 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { 935 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() {
936 cc::ContextProvider* provider = 936 cc::ContextProvider* provider =
937 compositor_deps_->GetSharedMainThreadContextProvider(); 937 compositor_deps_->GetSharedMainThreadContextProvider();
938 // provider can be NULL after the GPU process crashed enough times and we 938 // provider can be NULL after the GPU process crashed enough times and we
939 // don't want to restart it any more (falling back to software). 939 // don't want to restart it any more (falling back to software).
940 if (!provider) 940 if (!provider)
941 return; 941 return;
942 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 942 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
943 } 943 }
944 944
945 void RenderWidgetCompositor::SetSurfaceIdNamespace(
946 uint32_t surface_id_namespace) {
947 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
948 }
949
945 } // namespace content 950 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698