Index: gpu/command_buffer/service/gles2_cmd_decoder_mock.h |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_mock.h b/gpu/command_buffer/service/gles2_cmd_decoder_mock.h |
index 7ca7f8f2d234d22f2aa561f4c5e90c850482438f..b4374407e35cf7d36654cf6cc207a24da7f48fa3 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_mock.h |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_mock.h |
@@ -44,6 +44,8 @@ class MockGLES2Decoder : public GLES2Decoder { |
int num_entries, |
int* entries_processed); |
+ base::WeakPtr<GLES2Decoder> AsWeakPtr() override; |
+ |
MOCK_METHOD5(Initialize, |
bool(const scoped_refptr<gl::GLSurface>& surface, |
const scoped_refptr<gl::GLContext>& context, |
@@ -164,6 +166,9 @@ class MockGLES2Decoder : public GLES2Decoder { |
MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); |
MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); |
+ private: |
+ base::WeakPtrFactory<MockGLES2Decoder> weak_ptr_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
}; |