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

Unified Diff: webkit/compositor_bindings/WebExternalTextureLayerImpl.cpp

Issue 10915165: Don't depend on WEBKIT_IMPLEMENTATION guarded geometry conversion c'tors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add new files to gyp Created 8 years, 3 months 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
Index: webkit/compositor_bindings/WebExternalTextureLayerImpl.cpp
diff --git a/webkit/compositor_bindings/WebExternalTextureLayerImpl.cpp b/webkit/compositor_bindings/WebExternalTextureLayerImpl.cpp
index 0537fc268acc1c7590e26698aec367f013e8e838..b620e25e5d8ac0feb9701131d0c129693cd12e4d 100644
--- a/webkit/compositor_bindings/WebExternalTextureLayerImpl.cpp
+++ b/webkit/compositor_bindings/WebExternalTextureLayerImpl.cpp
@@ -8,6 +8,7 @@
#include "CCTextureUpdateQueue.h"
#include "TextureLayerChromium.h"
#include "WebLayerImpl.h"
+#include "webcore_convert.h"
#include <public/WebExternalTextureLayerClient.h>
#include <public/WebFloatRect.h>
#include <public/WebSize.h>
@@ -55,7 +56,7 @@ void WebExternalTextureLayerImpl::setFlipped(bool flipped)
void WebExternalTextureLayerImpl::setUVRect(const WebFloatRect& rect)
{
- static_cast<TextureLayerChromium*>(m_layer->layer())->setUVRect(rect);
+ static_cast<TextureLayerChromium*>(m_layer->layer())->setUVRect(convert(rect));
}
void WebExternalTextureLayerImpl::setOpaque(bool opaque)
@@ -87,7 +88,7 @@ public:
virtual void appendCopy(unsigned sourceTexture, unsigned destinationTexture, WebSize size) OVERRIDE
{
- TextureCopier::Parameters copy = { sourceTexture, destinationTexture, size };
+ TextureCopier::Parameters copy = { sourceTexture, destinationTexture, convert(size) };
m_queue.appendCopy(copy);
}
« no previous file with comments | « webkit/compositor_bindings/WebContentLayerImpl.cpp ('k') | webkit/compositor_bindings/WebIOSurfaceLayerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698