| Index: gpu/command_buffer/service/gles2_cmd_decoder.h
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.h b/gpu/command_buffer/service/gles2_cmd_decoder.h
|
| index be24077ffb867cc1143363e7cce9faa205d17442..c44250b2112e7824e880deebc38336b1e999dd10 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder.h
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder.h
|
| @@ -65,6 +65,10 @@ class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>,
|
| public:
|
| typedef error::Error Error;
|
| typedef base::Callback<bool(uint32 id)> WaitSyncPointCallback;
|
| + typedef base::Callback<void(uint32_t release)> FenceSyncReleaseCallback;
|
| + typedef base::Callback<bool(int channel_client_id,
|
| + uint32_t route_id,
|
| + uint32_t release)> WaitFenceSyncCallback;
|
|
|
| // The default stencil mask, which has all bits set. This really should be a
|
| // GLuint, but we can't #include gl_bindings.h in this file without causing
|
| @@ -230,6 +234,13 @@ class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>,
|
| virtual void SetWaitSyncPointCallback(
|
| const WaitSyncPointCallback& callback) = 0;
|
|
|
| + // Sets the callback for fence sync release and wait calls. The wait call
|
| + // returns true if the channel is still scheduled.
|
| + virtual void SetFenceSyncReleaseCallback(
|
| + const FenceSyncReleaseCallback& callback) = 0;
|
| + virtual void SetWaitFenceSyncCallback(
|
| + const WaitFenceSyncCallback& callback) = 0;
|
| +
|
| virtual void WaitForReadPixels(base::Closure callback) = 0;
|
| virtual uint32 GetTextureUploadCount() = 0;
|
| virtual base::TimeDelta GetTotalTextureUploadTime() = 0;
|
|
|