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

Side by Side Diff: cc/resources/scoped_resource.h

Issue 652583002: remove unused Leak() function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed test code Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/resources/scoped_resource.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_RESOURCES_SCOPED_RESOURCE_H_ 5 #ifndef CC_RESOURCES_SCOPED_RESOURCE_H_
6 #define CC_RESOURCES_SCOPED_RESOURCE_H_ 6 #define CC_RESOURCES_SCOPED_RESOURCE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 14 matching lines...) Expand all
25 } 25 }
26 virtual ~ScopedResource(); 26 virtual ~ScopedResource();
27 27
28 void Allocate(const gfx::Size& size, 28 void Allocate(const gfx::Size& size,
29 ResourceProvider::TextureHint hint, 29 ResourceProvider::TextureHint hint,
30 ResourceFormat format); 30 ResourceFormat format);
31 void AllocateManaged(const gfx::Size& size, 31 void AllocateManaged(const gfx::Size& size,
32 GLenum target, 32 GLenum target,
33 ResourceFormat format); 33 ResourceFormat format);
34 void Free(); 34 void Free();
35 void Leak();
36 35
37 protected: 36 protected:
38 explicit ScopedResource(ResourceProvider* provider); 37 explicit ScopedResource(ResourceProvider* provider);
39 38
40 private: 39 private:
41 ResourceProvider* resource_provider_; 40 ResourceProvider* resource_provider_;
42 41
43 #if DCHECK_IS_ON 42 #if DCHECK_IS_ON
44 base::PlatformThreadId allocate_thread_id_; 43 base::PlatformThreadId allocate_thread_id_;
45 #endif 44 #endif
46 45
47 DISALLOW_COPY_AND_ASSIGN(ScopedResource); 46 DISALLOW_COPY_AND_ASSIGN(ScopedResource);
48 }; 47 };
49 48
50 } // namespace cc 49 } // namespace cc
51 50
52 #endif // CC_RESOURCES_SCOPED_RESOURCE_H_ 51 #endif // CC_RESOURCES_SCOPED_RESOURCE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/resources/scoped_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698