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

Unified Diff: webkit/compositor_bindings/WebExternalTextureLayerImpl.cpp

Issue 11192050: Rename compositor bindings filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
deleted file mode 100644
index 165fd636b65736656158b2e248fb81913cd349c9..0000000000000000000000000000000000000000
--- a/webkit/compositor_bindings/WebExternalTextureLayerImpl.cpp
+++ /dev/null
@@ -1,112 +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 "WebLayerImpl.h"
-#include "cc/texture_layer.h"
-#include "cc/texture_update_queue.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureLayerClient.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h"
-#include "webcore_convert.h"
-
-using namespace cc;
-
-namespace WebKit {
-
-WebExternalTextureLayer* WebExternalTextureLayer::create(WebExternalTextureLayerClient* client)
-{
- return new WebExternalTextureLayerImpl(client);
-}
-
-WebExternalTextureLayerImpl::WebExternalTextureLayerImpl(WebExternalTextureLayerClient* client)
- : m_client(client)
-{
- scoped_refptr<TextureLayerChromium> layer;
- if (m_client)
- layer = TextureLayerChromium::create(this);
- else
- layer = TextureLayerChromium::create(0);
- layer->setIsDrawable(true);
- m_layer.reset(new WebLayerImpl(layer));
-}
-
-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(convert(rect));
-}
-
-void WebExternalTextureLayerImpl::setOpaque(bool opaque)
-{
- static_cast<TextureLayerChromium*>(m_layer->layer())->setContentsOpaque(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, convert(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_bindings/WebExternalTextureLayerImpl.h ('k') | webkit/compositor_bindings/WebFloatAnimationCurveImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698