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

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

Issue 1365563002: Make channel preemption not require view contexts for hookup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wakeup_gpu
Patch Set: fix build and broken rebase Created 5 years, 3 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/common/gpu/gpu_channel.h
diff --git a/content/common/gpu/gpu_channel.h b/content/common/gpu/gpu_channel.h
index da16f3417385a7afd26a0f2b476948d54d7a29f7..c9cc22928f6d4b3bc8cd2e490f275f1d39758acd 100644
--- a/content/common/gpu/gpu_channel.h
+++ b/content/common/gpu/gpu_channel.h
@@ -68,11 +68,11 @@ class CONTENT_EXPORT GpuChannel
GpuWatchdog* watchdog,
gfx::GLShareGroup* share_group,
gpu::gles2::MailboxManager* mailbox_manager,
+ gpu::PreemptionFlag* preempting_flag,
base::SingleThreadTaskRunner* task_runner,
base::SingleThreadTaskRunner* io_task_runner,
int client_id,
uint64_t client_tracing_id,
- bool software,
bool allow_future_sync_points,
bool allow_real_time_streams);
~GpuChannel() override;
@@ -116,7 +116,6 @@ class CONTENT_EXPORT GpuChannel
CreateCommandBufferResult CreateViewCommandBuffer(
const gfx::GLSurfaceHandle& window,
- int32 surface_id,
const GPUCreateCommandBufferConfig& init_params,
int32 route_id);
@@ -134,7 +133,7 @@ class CONTENT_EXPORT GpuChannel
// Called to remove a listener for a particular message routing ID.
void RemoveRoute(int32 route_id);
- gpu::PreemptionFlag* GetPreemptionFlag();
+ void SetPreemptingFlag(gpu::PreemptionFlag* flag);
// If |preemption_flag->IsSet()|, any stub on this channel
// should stop issuing GL commands. Setting this to NULL stops deferral.
@@ -276,7 +275,6 @@ class CONTENT_EXPORT GpuChannel
gpu::gles2::DisallowedFeatures disallowed_features_;
GpuWatchdog* watchdog_;
- bool software_;
size_t num_stubs_descheduled_;
@@ -311,6 +309,7 @@ class GpuChannelMessageFilter : public IPC::MessageFilter {
GpuChannelMessageQueue* message_queue,
gpu::SyncPointManager* sync_point_manager,
base::SingleThreadTaskRunner* task_runner,
+ gpu::PreemptionFlag* preempting_flag,
bool future_sync_points);
// IPC::MessageFilter implementation.
@@ -326,9 +325,6 @@ class GpuChannelMessageFilter : public IPC::MessageFilter {
void OnMessageProcessed();
- void SetPreemptingFlagAndSchedulingState(gpu::PreemptionFlag* preempting_flag,
- bool a_stub_is_descheduled);
-
void UpdateStubSchedulingState(bool a_stub_is_descheduled);
bool Send(IPC::Message* message);

Powered by Google App Engine
This is Rietveld 408576698