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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough.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_passthrough.h
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
index 63a62dad6b2877135a119e74a2393e5a94b2cb50..eeaa378024365de403447357a4e44a0e73dcfa25 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
@@ -79,6 +79,8 @@ class GLES2DecoderPassthroughImpl : public GLES2Decoder {
const char* GetCommandName(unsigned int command_id) const override;
+ base::WeakPtr<GLES2Decoder> AsWeakPtr() override;
+
bool Initialize(const scoped_refptr<gl::GLSurface>& surface,
const scoped_refptr<gl::GLContext>& context,
bool offscreen,
@@ -398,6 +400,8 @@ class GLES2DecoderPassthroughImpl : public GLES2Decoder {
// Cache of scratch memory
std::vector<uint8_t> scratch_memory_;
+ base::WeakPtrFactory<GLES2DecoderPassthroughImpl> weak_ptr_factory_;
+
// Include the prototypes of all the doer functions from a separate header to
// keep this file clean.
#include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototypes.h"
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_mock.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698