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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 10383262: RefCounted types should not have public destructors, delegate cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make win bot happy Created 8 years, 6 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: content/common/gpu/gpu_command_buffer_stub.h
diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h
index eeb3c9b00d95a8701ea80da4ae7d48286a492365..aa30711778f39c10a2121a6c4108c5c39ffa7c9c 100644
--- a/content/common/gpu/gpu_command_buffer_stub.h
+++ b/content/common/gpu/gpu_command_buffer_stub.h
@@ -83,10 +83,11 @@ class GpuCommandBufferStub
public:
class DestructionObserver {
public:
- ~DestructionObserver() {}
-
// Called in Destroy(), before the context/surface are released.
virtual void OnWillDestroyStub(GpuCommandBufferStub* stub) = 0;
+
+ protected:
+ virtual ~DestructionObserver() {}
};
GpuCommandBufferStub(
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h ('k') | content/common/gpu/gpu_watchdog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698