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

Side by Side Diff: cc/prioritized_texture.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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/occlusion_tracker.cc ('k') | cc/prioritized_texture_manager.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 CCPrioritizedTexture_h 5 #ifndef CCPrioritizedTexture_h
6 #define CCPrioritizedTexture_h 6 #define CCPrioritizedTexture_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/cc_export.h"
11 #include "cc/priority_calculator.h" 12 #include "cc/priority_calculator.h"
12 #include "cc/resource_provider.h" 13 #include "cc/resource_provider.h"
13 #include "cc/texture.h" 14 #include "cc/texture.h"
14 #include "ui/gfx/rect.h" 15 #include "ui/gfx/rect.h"
15 #include "ui/gfx/size.h" 16 #include "ui/gfx/size.h"
16 #include "ui/gfx/vector2d.h" 17 #include "ui/gfx/vector2d.h"
17 #include "third_party/khronos/GLES2/gl2.h" 18 #include "third_party/khronos/GLES2/gl2.h"
18 19
19 namespace cc { 20 namespace cc {
20 21
21 class PrioritizedTextureManager; 22 class PrioritizedTextureManager;
22 23
23 class PrioritizedTexture { 24 class CC_EXPORT PrioritizedTexture {
24 public: 25 public:
25 static scoped_ptr<PrioritizedTexture> create(PrioritizedTextureManager* mana ger, gfx::Size size, GLenum format) 26 static scoped_ptr<PrioritizedTexture> create(PrioritizedTextureManager* mana ger, gfx::Size size, GLenum format)
26 { 27 {
27 return make_scoped_ptr(new PrioritizedTexture(manager, size, format)); 28 return make_scoped_ptr(new PrioritizedTexture(manager, size, format));
28 } 29 }
29 static scoped_ptr<PrioritizedTexture> create(PrioritizedTextureManager* mana ger) 30 static scoped_ptr<PrioritizedTexture> create(PrioritizedTextureManager* mana ger)
30 { 31 {
31 return make_scoped_ptr(new PrioritizedTexture(manager, gfx::Size(), 0)); 32 return make_scoped_ptr(new PrioritizedTexture(manager, gfx::Size(), 0));
32 } 33 }
33 ~PrioritizedTexture(); 34 ~PrioritizedTexture();
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 145
145 Backing* m_backing; 146 Backing* m_backing;
146 PrioritizedTextureManager* m_manager; 147 PrioritizedTextureManager* m_manager;
147 148
148 DISALLOW_COPY_AND_ASSIGN(PrioritizedTexture); 149 DISALLOW_COPY_AND_ASSIGN(PrioritizedTexture);
149 }; 150 };
150 151
151 } // namespace cc 152 } // namespace cc
152 153
153 #endif 154 #endif
OLDNEW
« no previous file with comments | « cc/occlusion_tracker.cc ('k') | cc/prioritized_texture_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698