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

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

Issue 7890046: Command to mark surface inactive, so gpu process can release resources. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Flush only on hide Created 9 years, 2 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
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 118c27dfd055d106ee635ea4933bdbfd98eb8662..94571bd097f1751a1cb47787bebfbbaaea644a66 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.h
@@ -107,6 +107,9 @@ class GLES2Decoder : public CommonDecoder {
virtual void SetResizeCallback(
Callback1<gfx::Size>::Type* callback) = 0;
+ virtual void SetSurfaceVisibleCallback(
+ Callback1<bool>::Type* callback) = 0;
+
#if defined(OS_MACOSX)
// Sets a callback which is called when a SwapBuffers command is processed.
virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0;

Powered by Google App Engine
This is Rietveld 408576698