OLD | NEW |
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 Loading... |
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 |
OLD | NEW |