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

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

Issue 9910004: Implement Discard and EnsureBackbufferCHROMIUM using command buffer instead of IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/common/gles2_cmd_ids_autogen.h ('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 1d1277ba7eaa579f4cb8797244fbef5ef93041e6..4c2e162225d6bc15cfeb3e7a4341075303c36645 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.h
@@ -45,6 +45,8 @@ class GPU_EXPORT GLES2Decoder : public CommonDecoder {
public:
typedef error::Error Error;
typedef base::Callback<void(int32 id, const std::string& msg)> MsgCallback;
+ typedef base::Callback<void()> DiscardBackbufferCallback;
+ typedef base::Callback<void()> EnsureBackbufferCallback;
// Creates a decoder.
static GLES2Decoder* Create(ContextGroup* group);
@@ -164,6 +166,12 @@ class GPU_EXPORT GLES2Decoder : public CommonDecoder {
// A callback for messages from the decoder.
virtual void SetMsgCallback(const MsgCallback& callback) = 0;
+ // Called when discard/ensure backbuffer messages are decoded.
+ virtual void SetDiscardBackbufferCallback(
+ const DiscardBackbufferCallback& callback) = 0;
+ virtual void SetEnsureBackbufferCallback(
+ const EnsureBackbufferCallback& callback) = 0;
+
static bool IsAngle();
// Used for testing only
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_ids_autogen.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698