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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 2252163003: Update Context Client Visibility to use Scoped Pattern (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix webview 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/test_in_process_context_provider.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index 6af8dd9f00fc8e75b34a4f4b0f68ad32a8dcf950..b689aeb9c8d1360889768f8312a404b8117d0490 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -42,6 +42,7 @@
#include "cc/trees/layer_tree_settings.h"
#include "cc/trees/mutator_host_client.h"
#include "cc/trees/task_runner_provider.h"
+#include "gpu/command_buffer/client/context_support.h"
#include "ui/gfx/geometry/rect.h"
namespace gfx {
@@ -722,6 +723,11 @@ class CC_EXPORT LayerTreeHostImpl
OutputSurface* output_surface_;
+ std::unique_ptr<gpu::ContextSupport::ScopedVisibility>
+ main_context_client_visibility_;
+ std::unique_ptr<gpu::ContextSupport::ScopedVisibility>
+ worker_context_client_visibility_;
+
std::unique_ptr<ResourceProvider> resource_provider_;
bool need_update_gpu_rasterization_status_;
bool content_is_suitable_for_gpu_rasterization_;
« no previous file with comments | « cc/test/test_in_process_context_provider.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698