diff options
author | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-02 02:38:08 +0000 |
---|---|---|
committer | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-02 02:38:08 +0000 |
commit | ab9327cca6229082f06a62b58790ba57a3f05f1a (patch) | |
tree | e171c605d554a0d14b4c10b78c139e769064c6cf /ui/gfx/compositor | |
parent | 1b29524a560d76577ae8149013c0a9e22782a20c (diff) | |
download | chromium_src-ab9327cca6229082f06a62b58790ba57a3f05f1a.zip chromium_src-ab9327cca6229082f06a62b58790ba57a3f05f1a.tar.gz chromium_src-ab9327cca6229082f06a62b58790ba57a3f05f1a.tar.bz2 |
RefCounted types should not have public destructors, printing/ and ui/
BUG=123295
TEST=none
Review URL: http://codereview.chromium.org/10067034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134859 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/compositor')
-rw-r--r-- | ui/gfx/compositor/compositor.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/gfx/compositor/compositor.h b/ui/gfx/compositor/compositor.h index 5d8cc96..9475cf6 100644 --- a/ui/gfx/compositor/compositor.h +++ b/ui/gfx/compositor/compositor.h @@ -38,7 +38,7 @@ class Layer; // a global object. class COMPOSITOR_EXPORT ContextFactory { public: - virtual ~ContextFactory() { } + virtual ~ContextFactory() {} // Gets the global instance. static ContextFactory* GetInstance(); @@ -97,14 +97,18 @@ class COMPOSITOR_EXPORT DefaultContextFactory : public ContextFactory { class COMPOSITOR_EXPORT Texture : public base::RefCounted<Texture> { public: Texture(bool flipped, const gfx::Size& size); - virtual ~Texture(); unsigned int texture_id() const { return texture_id_; } void set_texture_id(unsigned int id) { texture_id_ = id; } bool flipped() const { return flipped_; } gfx::Size size() const { return size_; } + protected: + virtual ~Texture(); + private: + friend class base::RefCounted<Texture>; + unsigned int texture_id_; bool flipped_; gfx::Size size_; |