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

Side by Side Diff: cc/scoped_texture.h

Issue 11122003: [cc] Rename all cc/ filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « cc/scheduler_state_machine.cc ('k') | cc/scoped_texture.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
5 #ifndef CCScopedTexture_h
6 #define CCScopedTexture_h
7
8 #include "base/basictypes.h"
9 #include "CCTexture.h"
10
11 #if !ASSERT_DISABLED
12 #include "base/threading/platform_thread.h"
13 #endif
14
15 namespace cc {
16
17 class CCScopedTexture : protected CCTexture {
18 public:
19 static PassOwnPtr<CCScopedTexture> create(CCResourceProvider* resourceProvid er) { return adoptPtr(new CCScopedTexture(resourceProvider)); }
20 virtual ~CCScopedTexture();
21
22 using CCTexture::id;
23 using CCTexture::size;
24 using CCTexture::format;
25 using CCTexture::bytes;
26
27 bool allocate(int pool, const IntSize&, GC3Denum format, CCResourceProvider: :TextureUsageHint);
28 void free();
29 void leak();
30
31 protected:
32 explicit CCScopedTexture(CCResourceProvider*);
33
34 private:
35 CCResourceProvider* m_resourceProvider;
36
37 #if !ASSERT_DISABLED
38 base::PlatformThreadId m_allocateThreadIdentifier;
39 #endif
40
41 DISALLOW_COPY_AND_ASSIGN(CCScopedTexture);
42 };
43
44 }
45
46 #endif
OLDNEW
« no previous file with comments | « cc/scheduler_state_machine.cc ('k') | cc/scoped_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698