diff options
Diffstat (limited to 'content/common/gpu/gpu_command_buffer_stub.h')
-rw-r--r-- | content/common/gpu/gpu_command_buffer_stub.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h index 6ece34f..f581593 100644 --- a/content/common/gpu/gpu_command_buffer_stub.h +++ b/content/common/gpu/gpu_command_buffer_stub.h @@ -65,6 +65,9 @@ class GpuCommandBufferStub // Whether this command buffer can currently handle IPC messages. bool IsScheduled(); + // Set the swap interval according to the command line. + void SetSwapInterval(); + gpu::gles2::GLES2Decoder* decoder() const { return decoder_.get(); } gpu::GpuScheduler* scheduler() const { return scheduler_.get(); } @@ -78,8 +81,6 @@ class GpuCommandBufferStub // to the same renderer process. int32 route_id() const { return route_id_; } - void ViewResized(); - gfx::GpuPreference gpu_preference() { return gpu_preference_; } private: @@ -117,22 +118,11 @@ class GpuCommandBufferStub void OnSetSurfaceVisible(bool visible); -#if defined(OS_MACOSX) - void OnSwapBuffers(); - - // Returns the id of the current surface that is being rendered to - // (or 0 if no such surface has been created). - uint64 GetSurfaceId(); -#endif - void OnCommandProcessed(); void OnParseError(); - void OnResize(gfx::Size size); void ReportState(); - void SetSwapInterval(); - // The lifetime of objects of this class is managed by a GpuChannel. The // GpuChannels destroy all the GpuCommandBufferStubs that they own when they // are destroyed. So a raw pointer is safe. |