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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1894313002: Removed implementation of CHROMIUM_subscribe_uniform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a couple more mus/ references Created 4 years, 8 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
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index f272f2654c6d1c6da9712c09be72bd7eceb9ff3a..5f4f7fab243df609f805ac50e349ea4b308d61ba 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -572,8 +572,6 @@ RenderProcessHostImpl::RenderProcessHostImpl(
worker_ref_count_(0),
max_worker_count_(0),
permission_service_context_(new PermissionServiceContext(this)),
- pending_valuebuffer_state_(new gpu::ValueStateMap()),
- subscribe_uniform_enabled_(false),
channel_connected_(false),
sent_render_process_ready_(false),
#if defined(OS_ANDROID)
@@ -597,9 +595,6 @@ RenderProcessHostImpl::RenderProcessHostImpl(
base::Bind(&CacheShaderInfo, GetID(),
storage_partition_impl_->GetPath()));
}
- subscribe_uniform_enabled_ =
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableSubscribeUniformExtension);
#if defined(OS_MACOSX)
if (BootstrapSandboxManager::ShouldEnable())
@@ -1130,37 +1125,6 @@ const base::TimeTicks& RenderProcessHostImpl::GetInitTimeForNavigationMetrics()
return init_time_;
}
-bool RenderProcessHostImpl::SubscribeUniformEnabled() const {
- return subscribe_uniform_enabled_;
-}
-
-void RenderProcessHostImpl::OnAddSubscription(unsigned int target) {
- DCHECK(subscribe_uniform_enabled_);
- subscription_set_.insert(target);
- const gpu::ValueState* state = pending_valuebuffer_state_->GetState(target);
- if (state) {
- SendUpdateValueState(target, *state);
- }
-}
-
-void RenderProcessHostImpl::OnRemoveSubscription(unsigned int target) {
- DCHECK(subscribe_uniform_enabled_);
- subscription_set_.erase(target);
-}
-
-void RenderProcessHostImpl::SendUpdateValueState(unsigned int target,
- const gpu::ValueState& state) {
- DCHECK(subscribe_uniform_enabled_);
- if (subscription_set_.find(target) != subscription_set_.end()) {
- GpuProcessHost::SendOnIO(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED,
- CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH,
- new GpuMsg_UpdateValueState(id_, target, state));
- } else {
- // Store the ValueState locally in case a Valuebuffer subscribes to it later
- pending_valuebuffer_state_->UpdateState(target, state);
- }
-}
-
#if defined(ENABLE_BROWSER_CDMS)
scoped_refptr<media::MediaKeys> RenderProcessHostImpl::GetCdm(
int render_frame_id,
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698