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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.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: 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
« no previous file with comments | « content/common/gpu/gpu_channel_unittest.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.h
diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h
index eef49f20ec06a455a9d096f8ef548df91d66b06a..83025c82b1ca377ca45569a8204c3c704d197aad 100644
--- a/content/common/gpu/gpu_command_buffer_stub.h
+++ b/content/common/gpu/gpu_command_buffer_stub.h
@@ -74,6 +74,7 @@ class GpuCommandBufferStub
GpuCommandBufferStub* share_group,
const gfx::GLSurfaceHandle& handle,
gpu::gles2::MailboxManager* mailbox_manager,
+ gpu::PreemptionFlag* preempt_by_flag,
gpu::gles2::SubscriptionRefSet* subscription_ref_set,
gpu::ValueStateMap* pending_valuebuffer_state,
const gfx::Size& size,
@@ -82,9 +83,8 @@ class GpuCommandBufferStub
gfx::GpuPreference gpu_preference,
int32 stream_id,
int32 route_id,
- int32 surface_id,
+ bool offscreen,
GpuWatchdog* watchdog,
- bool software,
const GURL& active_url);
~GpuCommandBufferStub() override;
@@ -115,9 +115,6 @@ class GpuCommandBufferStub
// Unique command buffer ID for this command buffer stub.
uint64_t command_buffer_id() const { return command_buffer_id_; }
- // Identifies the target surface.
- int32 surface_id() const { return surface_id_; }
-
// Identifies the various GpuCommandBufferStubs in the GPU process belonging
// to the same renderer process.
int32 route_id() const { return route_id_; }
@@ -143,8 +140,6 @@ class GpuCommandBufferStub
// retire all sync points that haven't been previously retired.
void AddSyncPoint(uint32 sync_point, bool retire);
- void SetPreemptByFlag(scoped_refptr<gpu::PreemptionFlag> flag);
-
void SetLatencyInfoCallback(const LatencyInfoCallback& callback);
void MarkContextLost();
@@ -264,8 +259,7 @@ class GpuCommandBufferStub
const uint64_t command_buffer_id_;
const int32 stream_id_;
const int32 route_id_;
- const int32 surface_id_;
- bool software_;
+ const bool offscreen_;
uint32 last_flush_count_;
scoped_ptr<gpu::CommandBufferService> command_buffer_;
« no previous file with comments | « content/common/gpu/gpu_channel_unittest.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698