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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.h

Issue 2021603002: gpu: Add a new extension CHROMIUM_deschedule. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b109c7b35483501a2786f6f63dfe9a613ee29ced..589f8af77f51124877a5a75c75fb98eaa82f4c00 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.h
@@ -93,6 +93,7 @@ class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>,
gpu::CommandBufferId command_buffer_id,
uint64_t release)>
WaitFenceSyncCallback;
+ typedef base::Callback<void(void)> NoParamCallback;
// 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
@@ -292,6 +293,13 @@ class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>,
virtual void SetWaitFenceSyncCallback(
const WaitFenceSyncCallback& callback) = 0;
+ // Sets the callback for the DescheduleUntilFinished and
+ // RescheduleAfterFinished calls.
+ virtual void SetDescheduleUntilFinishedCallback(
+ const NoParamCallback& callback) = 0;
+ virtual void SetRescheduleAfterFinishedCallback(
+ const NoParamCallback& callback) = 0;
+
virtual void WaitForReadPixels(base::Closure callback) = 0;
virtual uint32_t GetTextureUploadCount() = 0;
virtual base::TimeDelta GetTotalTextureUploadTime() = 0;
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698