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

Unified Diff: content/common/gpu/gpu_channel.h

Issue 12340118: GPU: Only allow the UI channel to preempt if all stubs are scheduled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit. Created 7 years, 10 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 | « no previous file | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel.h
diff --git a/content/common/gpu/gpu_channel.h b/content/common/gpu/gpu_channel.h
index 3cf2cafe4f51a06176c81ace1e17503cfbc32030..4e87588c1911e5e15d6e2c7e505fbafb037710d4 100644
--- a/content/common/gpu/gpu_channel.h
+++ b/content/common/gpu/gpu_channel.h
@@ -102,6 +102,11 @@ class GpuChannel : public IPC::Listener,
// deferred IPC messaged are handled.
void OnScheduled();
+ // This is called when a command buffer transitions between scheduled and
+ // descheduled states. When any stub is descheduled, we stop preempting
+ // other channels.
+ void StubSchedulingChanged(bool scheduled);
+
void CreateViewCommandBuffer(
const gfx::GLSurfaceHandle& window,
int32 surface_id,
@@ -240,6 +245,8 @@ class GpuChannel : public IPC::Listener,
scoped_refptr<SyncPointMessageFilter> filter_;
scoped_refptr<base::MessageLoopProxy> io_message_loop_;
+ size_t num_stubs_descheduled_;
+
DISALLOW_COPY_AND_ASSIGN(GpuChannel);
};
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698