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

Side by Side Diff: cc/resource_provider.h

Issue 11464007: Add the DelegatingRenderer class with its initialize path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initialize() Created 8 years 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
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_RESOURCE_PROVIDER_H_ 5 #ifndef CC_RESOURCE_PROVIDER_H_
6 #define CC_RESOURCE_PROVIDER_H_ 6 #define CC_RESOURCE_PROVIDER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 Bitmap, 46 Bitmap,
47 }; 47 };
48 48
49 static scoped_ptr<ResourceProvider> create(OutputSurface*); 49 static scoped_ptr<ResourceProvider> create(OutputSurface*);
50 50
51 virtual ~ResourceProvider(); 51 virtual ~ResourceProvider();
52 52
53 WebKit::WebGraphicsContext3D* graphicsContext3D(); 53 WebKit::WebGraphicsContext3D* graphicsContext3D();
54 TextureCopier* textureCopier() const { return m_textureCopier.get(); } 54 TextureCopier* textureCopier() const { return m_textureCopier.get(); }
55 int maxTextureSize() const { return m_maxTextureSize; } 55 int maxTextureSize() const { return m_maxTextureSize; }
56 GLenum bestTextureFormat() const { return m_bestTextureFormat; }
56 unsigned numResources() const { return m_resources.size(); } 57 unsigned numResources() const { return m_resources.size(); }
57 58
58 // Checks whether a resource is in use by a consumer. 59 // Checks whether a resource is in use by a consumer.
59 bool inUseByConsumer(ResourceId); 60 bool inUseByConsumer(ResourceId);
60 61
61 62
62 // Producer interface. 63 // Producer interface.
63 64
64 void setDefaultResourceType(ResourceType type) { m_defaultResourceType = typ e; } 65 void setDefaultResourceType(ResourceType type) { m_defaultResourceType = typ e; }
65 ResourceType defaultResourceType() const { return m_defaultResourceType; } 66 ResourceType defaultResourceType() const { return m_defaultResourceType; }
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 int m_nextChild; 283 int m_nextChild;
283 ChildMap m_children; 284 ChildMap m_children;
284 285
285 ResourceType m_defaultResourceType; 286 ResourceType m_defaultResourceType;
286 bool m_useTextureStorageExt; 287 bool m_useTextureStorageExt;
287 bool m_useTextureUsageHint; 288 bool m_useTextureUsageHint;
288 bool m_useShallowFlush; 289 bool m_useShallowFlush;
289 scoped_ptr<TextureUploader> m_textureUploader; 290 scoped_ptr<TextureUploader> m_textureUploader;
290 scoped_ptr<AcceleratedTextureCopier> m_textureCopier; 291 scoped_ptr<AcceleratedTextureCopier> m_textureCopier;
291 int m_maxTextureSize; 292 int m_maxTextureSize;
293 GLenum m_bestTextureFormat;
292 294
293 base::ThreadChecker m_threadChecker; 295 base::ThreadChecker m_threadChecker;
294 296
295 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); 297 DISALLOW_COPY_AND_ASSIGN(ResourceProvider);
296 }; 298 };
297 299
298 } 300 }
299 301
300 #endif // CC_RESOURCE_PROVIDER_H_ 302 #endif // CC_RESOURCE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698