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

Unified Diff: webkit/compositor/WebExternalTextureLayerImpl.cpp

Issue 10920056: Make cc_unittests and webkit_compositor_unittests executable always (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename to webkit_compositor_bindings Created 8 years, 4 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
« no previous file with comments | « webkit/compositor/WebExternalTextureLayerImpl.h ('k') | webkit/compositor/WebFloatAnimationCurveImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor/WebExternalTextureLayerImpl.cpp
diff --git a/webkit/compositor/WebExternalTextureLayerImpl.cpp b/webkit/compositor/WebExternalTextureLayerImpl.cpp
deleted file mode 100644
index 0537fc268acc1c7590e26698aec367f013e8e838..0000000000000000000000000000000000000000
--- a/webkit/compositor/WebExternalTextureLayerImpl.cpp
+++ /dev/null
@@ -1,111 +0,0 @@
-// Copyright 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-#include "WebExternalTextureLayerImpl.h"
-
-#include "CCTextureUpdateQueue.h"
-#include "TextureLayerChromium.h"
-#include "WebLayerImpl.h"
-#include <public/WebExternalTextureLayerClient.h>
-#include <public/WebFloatRect.h>
-#include <public/WebSize.h>
-
-using namespace WebCore;
-
-namespace WebKit {
-
-WebExternalTextureLayer* WebExternalTextureLayer::create(WebExternalTextureLayerClient* client)
-{
- return new WebExternalTextureLayerImpl(client);
-}
-
-WebExternalTextureLayerImpl::WebExternalTextureLayerImpl(WebExternalTextureLayerClient* client)
- : m_client(client)
-{
- RefPtr<TextureLayerChromium> layer;
- if (m_client)
- layer = TextureLayerChromium::create(this);
- else
- layer = TextureLayerChromium::create(0);
- layer->setIsDrawable(true);
- m_layer = adoptPtr(new WebLayerImpl(layer.release()));
-}
-
-WebExternalTextureLayerImpl::~WebExternalTextureLayerImpl()
-{
- static_cast<TextureLayerChromium*>(m_layer->layer())->clearClient();
-}
-
-WebLayer* WebExternalTextureLayerImpl::layer()
-{
- return m_layer.get();
-}
-
-void WebExternalTextureLayerImpl::setTextureId(unsigned id)
-{
- static_cast<TextureLayerChromium*>(m_layer->layer())->setTextureId(id);
-}
-
-void WebExternalTextureLayerImpl::setFlipped(bool flipped)
-{
- static_cast<TextureLayerChromium*>(m_layer->layer())->setFlipped(flipped);
-}
-
-void WebExternalTextureLayerImpl::setUVRect(const WebFloatRect& rect)
-{
- static_cast<TextureLayerChromium*>(m_layer->layer())->setUVRect(rect);
-}
-
-void WebExternalTextureLayerImpl::setOpaque(bool opaque)
-{
- static_cast<TextureLayerChromium*>(m_layer->layer())->setOpaque(opaque);
-}
-
-void WebExternalTextureLayerImpl::setPremultipliedAlpha(bool premultipliedAlpha)
-{
- static_cast<TextureLayerChromium*>(m_layer->layer())->setPremultipliedAlpha(premultipliedAlpha);
-}
-
-void WebExternalTextureLayerImpl::willModifyTexture()
-{
- static_cast<TextureLayerChromium*>(m_layer->layer())->willModifyTexture();
-}
-
-void WebExternalTextureLayerImpl::setRateLimitContext(bool rateLimit)
-{
- static_cast<TextureLayerChromium*>(m_layer->layer())->setRateLimitContext(rateLimit);
-}
-
-class WebTextureUpdaterImpl : public WebTextureUpdater {
-public:
- explicit WebTextureUpdaterImpl(CCTextureUpdateQueue& queue)
- : m_queue(queue)
- {
- }
-
- virtual void appendCopy(unsigned sourceTexture, unsigned destinationTexture, WebSize size) OVERRIDE
- {
- TextureCopier::Parameters copy = { sourceTexture, destinationTexture, size };
- m_queue.appendCopy(copy);
- }
-
-private:
- CCTextureUpdateQueue& m_queue;
-};
-
-unsigned WebExternalTextureLayerImpl::prepareTexture(CCTextureUpdateQueue& queue)
-{
- ASSERT(m_client);
- WebTextureUpdaterImpl updaterImpl(queue);
- return m_client->prepareTexture(updaterImpl);
-}
-
-WebGraphicsContext3D* WebExternalTextureLayerImpl::context()
-{
- ASSERT(m_client);
- return m_client->context();
-}
-
-} // namespace WebKit
« no previous file with comments | « webkit/compositor/WebExternalTextureLayerImpl.h ('k') | webkit/compositor/WebFloatAnimationCurveImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698