summaryrefslogtreecommitdiff
path: root/Source/WebCore/platform/graphics/chromium/cc/CCTexture.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/chromium/cc/CCTexture.h')
-rw-r--r--Source/WebCore/platform/graphics/chromium/cc/CCTexture.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/chromium/cc/CCTexture.h b/Source/WebCore/platform/graphics/chromium/cc/CCTexture.h
index a29610469..0d5d9f768 100644
--- a/Source/WebCore/platform/graphics/chromium/cc/CCTexture.h
+++ b/Source/WebCore/platform/graphics/chromium/cc/CCTexture.h
@@ -35,6 +35,10 @@ namespace WebCore {
class CCTexture {
public:
CCTexture() : m_id(0) { }
+ CCTexture(unsigned id, IntSize size, GC3Denum format)
+ : m_id(id)
+ , m_size(size)
+ , m_format(format) { }
unsigned id() const { return m_id; }
const IntSize& size() const { return m_size; }