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

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

Issue 9194005: gpu: reference target surfaces through a globally unique surface id. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix more tests Created 8 years, 11 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_manager.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 87961814ce01858d450858c8fb4b41af97f1c68b..8f4e84a0f092e32e70e6385c50471eb5f4bd7c9b 100644
--- a/content/common/gpu/gpu_command_buffer_stub.h
+++ b/content/common/gpu/gpu_command_buffer_stub.h
@@ -49,8 +49,7 @@ class GpuCommandBufferStub
const std::vector<int32>& attribs,
gfx::GpuPreference gpu_preference,
int32 route_id,
- int32 client_id,
- int32 render_view_id,
+ int32 surface_id,
GpuWatchdog* watchdog,
bool software);
@@ -74,11 +73,8 @@ class GpuCommandBufferStub
gpu::gles2::GLES2Decoder* decoder() const { return decoder_.get(); }
gpu::GpuScheduler* scheduler() const { return scheduler_.get(); }
- // Identifies the renderer process.
- int32 client_id() const { return client_id_; }
-
- // Identifies a particular renderer belonging to the same renderer process.
- int32 render_view_id() const { return render_view_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.
@@ -146,10 +142,8 @@ class GpuCommandBufferStub
bool software_;
uint32 last_flush_count_;
- // The following two fields are used on Mac OS X to identify the window
- // for the rendering results on the browser side.
- int32 client_id_;
- int32 render_view_id_;
+ // Identifies the window for the rendering results on the browser side.
+ int32 surface_id_;
scoped_ptr<gpu::CommandBufferService> command_buffer_;
scoped_ptr<gpu::gles2::GLES2Decoder> decoder_;
« no previous file with comments | « content/common/gpu/gpu_channel_manager.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