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

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

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 | « cc/resources/scoped_gpu_raster_unittest.cc ('k') | cc/resources/scoped_ui_resource.h » ('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"
11 #include "cc/base/cc_export.h"
12 #include "cc/resources/resource.h" 11 #include "cc/resources/resource.h"
13 12
14 #if DCHECK_IS_ON() 13 #if DCHECK_IS_ON()
15 #include "base/threading/platform_thread.h" 14 #include "base/threading/platform_thread.h"
16 #endif 15 #endif
17 16
18 namespace cc { 17 namespace cc {
19 18
20 class CC_EXPORT ScopedResource : public Resource { 19 class ScopedResource : public Resource {
21 public: 20 public:
22 static scoped_ptr<ScopedResource> Create( 21 static scoped_ptr<ScopedResource> Create(
23 ResourceProvider* resource_provider) { 22 ResourceProvider* resource_provider) {
24 return make_scoped_ptr(new ScopedResource(resource_provider)); 23 return make_scoped_ptr(new ScopedResource(resource_provider));
25 } 24 }
26 virtual ~ScopedResource(); 25 virtual ~ScopedResource();
27 26
28 void Allocate(const gfx::Size& size, 27 void Allocate(const gfx::Size& size,
29 ResourceProvider::TextureHint hint, 28 ResourceProvider::TextureHint hint,
30 ResourceFormat format); 29 ResourceFormat format);
(...skipping 11 matching lines...) Expand all
42 #if DCHECK_IS_ON() 41 #if DCHECK_IS_ON()
43 base::PlatformThreadId allocate_thread_id_; 42 base::PlatformThreadId allocate_thread_id_;
44 #endif 43 #endif
45 44
46 DISALLOW_COPY_AND_ASSIGN(ScopedResource); 45 DISALLOW_COPY_AND_ASSIGN(ScopedResource);
47 }; 46 };
48 47
49 } // namespace cc 48 } // namespace cc
50 49
51 #endif // CC_RESOURCES_SCOPED_RESOURCE_H_ 50 #endif // CC_RESOURCES_SCOPED_RESOURCE_H_
OLDNEW
« no previous file with comments | « cc/resources/scoped_gpu_raster_unittest.cc ('k') | cc/resources/scoped_ui_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698