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

Unified Diff: cc/resource_provider.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/renderer.h ('k') | cc/resource_update.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resource_provider.h
diff --git a/cc/resource_provider.h b/cc/resource_provider.h
index b90524b5d323d61322befbfe0309d997ef7d6b4e..6262d316c1023c745ba097aee76f0645292cb501 100644
--- a/cc/resource_provider.h
+++ b/cc/resource_provider.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/hash_tables.h"
#include "base/memory/scoped_ptr.h"
+#include "cc/cc_export.h"
#include "cc/graphics_context.h"
#include "cc/texture_copier.h"
#include "third_party/khronos/GLES2/gl2.h"
@@ -28,13 +29,11 @@ class Vector2d;
namespace cc {
-class LayerTextureSubImage;
-class TextureCopier;
class TextureUploader;
// Thread-safety notes: this class is not thread-safe and can only be called
// from the thread it was created on (in practice, the compositor thread).
-class ResourceProvider {
+class CC_EXPORT ResourceProvider {
public:
typedef unsigned ResourceId;
typedef std::vector<ResourceId> ResourceIdArray;
@@ -54,7 +53,7 @@ public:
Mailbox mailbox;
};
typedef std::vector<TransferableResource> TransferableResourceArray;
- struct TransferableResourceList {
+ struct CC_EXPORT TransferableResourceList {
TransferableResourceList();
~TransferableResourceList();
@@ -154,7 +153,7 @@ public:
// needed to read and write the resource contents. The user must ensure
// that they only use GL locks on GL resources, etc, and this is enforced
// by assertions.
- class ScopedReadLockGL {
+ class CC_EXPORT ScopedReadLockGL {
public:
ScopedReadLockGL(ResourceProvider*, ResourceProvider::ResourceId);
~ScopedReadLockGL();
@@ -169,7 +168,7 @@ public:
DISALLOW_COPY_AND_ASSIGN(ScopedReadLockGL);
};
- class ScopedWriteLockGL {
+ class CC_EXPORT ScopedWriteLockGL {
public:
ScopedWriteLockGL(ResourceProvider*, ResourceProvider::ResourceId);
~ScopedWriteLockGL();
@@ -184,7 +183,7 @@ public:
DISALLOW_COPY_AND_ASSIGN(ScopedWriteLockGL);
};
- class ScopedReadLockSoftware {
+ class CC_EXPORT ScopedReadLockSoftware {
public:
ScopedReadLockSoftware(ResourceProvider*, ResourceProvider::ResourceId);
~ScopedReadLockSoftware();
@@ -199,7 +198,7 @@ public:
DISALLOW_COPY_AND_ASSIGN(ScopedReadLockSoftware);
};
- class ScopedWriteLockSoftware {
+ class CC_EXPORT ScopedWriteLockSoftware {
public:
ScopedWriteLockSoftware(ResourceProvider*, ResourceProvider::ResourceId);
~ScopedWriteLockSoftware();
« no previous file with comments | « cc/renderer.h ('k') | cc/resource_update.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698