| OLD | NEW | 
|---|
| 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 | 5 | 
| 6 #ifndef CCResourceProvider_h | 6 #ifndef CCResourceProvider_h | 
| 7 #define CCResourceProvider_h | 7 #define CCResourceProvider_h | 
| 8 | 8 | 
| 9 #include "CCGraphicsContext.h" | 9 #include "CCGraphicsContext.h" | 
| 10 #include "GraphicsContext3D.h" | 10 #include "GraphicsContext3D.h" | 
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 58     typedef Vector<TransferableResource> TransferableResourceArray; | 58     typedef Vector<TransferableResource> TransferableResourceArray; | 
| 59     struct TransferableResourceList { | 59     struct TransferableResourceList { | 
| 60         TransferableResourceArray resources; | 60         TransferableResourceArray resources; | 
| 61         unsigned syncPoint; | 61         unsigned syncPoint; | 
| 62     }; | 62     }; | 
| 63 | 63 | 
| 64     static PassOwnPtr<CCResourceProvider> create(CCGraphicsContext*, TextureUplo
     aderOption); | 64     static PassOwnPtr<CCResourceProvider> create(CCGraphicsContext*, TextureUplo
     aderOption); | 
| 65 | 65 | 
| 66     virtual ~CCResourceProvider(); | 66     virtual ~CCResourceProvider(); | 
| 67 | 67 | 
|  | 68     CCGraphicsContext* context() const { return m_context; } | 
| 68     WebKit::WebGraphicsContext3D* graphicsContext3D(); | 69     WebKit::WebGraphicsContext3D* graphicsContext3D(); | 
| 69     TextureUploader* textureUploader() const { return m_textureUploader.get(); } | 70     TextureUploader* textureUploader() const { return m_textureUploader.get(); } | 
| 70     TextureCopier* textureCopier() const { return m_textureCopier.get(); } | 71     TextureCopier* textureCopier() const { return m_textureCopier.get(); } | 
| 71     int maxTextureSize() const { return m_maxTextureSize; } | 72     int maxTextureSize() const { return m_maxTextureSize; } | 
| 72     unsigned numResources() const { return m_resources.size(); } | 73     unsigned numResources() const { return m_resources.size(); } | 
| 73 | 74 | 
| 74     // Checks whether a resource is in use by a consumer. | 75     // Checks whether a resource is in use by a consumer. | 
| 75     bool inUseByConsumer(ResourceId); | 76     bool inUseByConsumer(ResourceId); | 
| 76 | 77 | 
| 77 | 78 | 
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 289     bool m_useShallowFlush; | 290     bool m_useShallowFlush; | 
| 290     OwnPtr<LayerTextureSubImage> m_texSubImage; | 291     OwnPtr<LayerTextureSubImage> m_texSubImage; | 
| 291     OwnPtr<TextureUploader> m_textureUploader; | 292     OwnPtr<TextureUploader> m_textureUploader; | 
| 292     OwnPtr<AcceleratedTextureCopier> m_textureCopier; | 293     OwnPtr<AcceleratedTextureCopier> m_textureCopier; | 
| 293     int m_maxTextureSize; | 294     int m_maxTextureSize; | 
| 294 }; | 295 }; | 
| 295 | 296 | 
| 296 } | 297 } | 
| 297 | 298 | 
| 298 #endif | 299 #endif | 
| OLD | NEW | 
|---|