summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/gles2_cmd_decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/service/gles2_cmd_decoder.h')
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.h b/gpu/command_buffer/service/gles2_cmd_decoder.h
index d5004bb..0d6849d 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.h
@@ -43,6 +43,7 @@ struct DisallowedFeatures {
class GLES2Decoder : public CommonDecoder {
public:
typedef error::Error Error;
+ typedef base::Callback<void(int32 id, const std::string& msg)> MsgCallback;
// Creates a decoder.
static GLES2Decoder* Create(ContextGroup* group);
@@ -133,6 +134,9 @@ class GLES2Decoder : public CommonDecoder {
int width,
int height) = 0;
+ // A callback for messages from the decoder.
+ virtual void SetMsgCallback(const MsgCallback& callback) = 0;
+
protected:
GLES2Decoder();