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

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

Issue 2898953002: Remove SupportsWeakPtr inheritance from GLES2Decoder (Closed)
Patch Set: Created 3 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
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);
};
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698