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

Unified Diff: services/ui/surfaces/surfaces_context_provider.cc

Issue 2278283003: Refactor client visibility handling (Closed)
Patch Set: more fixes 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 | « services/ui/surfaces/surfaces_context_provider.h ('k') | ui/compositor/test/in_process_context_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/surfaces/surfaces_context_provider.cc
diff --git a/services/ui/surfaces/surfaces_context_provider.cc b/services/ui/surfaces/surfaces_context_provider.cc
index 81bee2c484ec3adf3d1a4af8d908a6f950cd92dc..e07ee591b365c503e56412d1f5334e3d116225fb 100644
--- a/services/ui/surfaces/surfaces_context_provider.cc
+++ b/services/ui/surfaces/surfaces_context_provider.cc
@@ -12,6 +12,7 @@
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread_task_runner_handle.h"
#include "build/build_config.h"
+#include "cc/output/context_cache_controller.h"
#include "gpu/command_buffer/client/gles2_cmd_helper.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
#include "gpu/command_buffer/client/shared_memory_limits.h"
@@ -92,6 +93,8 @@ bool SurfacesContextProvider::BindToCurrentThread() {
gles2_helper_.get(), NULL, transfer_buffer_.get(),
bind_generates_resource, lose_context_when_out_of_memory,
support_client_side_arrays, gpu_control));
+ cache_controller_.reset(
+ new cc::ContextCacheController(implementation_.get()));
return implementation_->Initialize(
default_limits.start_transfer_buffer_size,
default_limits.min_transfer_buffer_size,
@@ -112,6 +115,10 @@ class GrContext* SurfacesContextProvider::GrContext() {
return NULL;
}
+cc::ContextCacheController* SurfacesContextProvider::CacheController() {
+ return cache_controller_.get();
+}
+
void SurfacesContextProvider::InvalidateGrContext(uint32_t state) {}
gpu::Capabilities SurfacesContextProvider::ContextCapabilities() {
« no previous file with comments | « services/ui/surfaces/surfaces_context_provider.h ('k') | ui/compositor/test/in_process_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698