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

Unified Diff: webkit/compositor/WebContentLayerImpl.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/WebContentLayerImpl.h ('k') | webkit/compositor/WebExternalTextureLayerImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor/WebContentLayerImpl.cpp
diff --git a/webkit/compositor/WebContentLayerImpl.cpp b/webkit/compositor/WebContentLayerImpl.cpp
deleted file mode 100644
index 05775a3f0c33fbd1e56628f7f837ba1f62520c5c..0000000000000000000000000000000000000000
--- a/webkit/compositor/WebContentLayerImpl.cpp
+++ /dev/null
@@ -1,72 +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 "WebContentLayerImpl.h"
-
-#include "ContentLayerChromium.h"
-#include "SkMatrix44.h"
-#include <public/WebContentLayerClient.h>
-#include <public/WebFloatPoint.h>
-#include <public/WebFloatRect.h>
-#include <public/WebRect.h>
-#include <public/WebSize.h>
-
-using namespace WebCore;
-
-namespace WebKit {
-
-WebContentLayer* WebContentLayer::create(WebContentLayerClient* client)
-{
- return new WebContentLayerImpl(client);
-}
-
-WebContentLayerImpl::WebContentLayerImpl(WebContentLayerClient* client)
- : m_layer(adoptPtr(new WebLayerImpl(ContentLayerChromium::create(this))))
- , m_client(client)
-{
- m_layer->layer()->setIsDrawable(true);
-}
-
-WebContentLayerImpl::~WebContentLayerImpl()
-{
- static_cast<ContentLayerChromium*>(m_layer->layer())->clearClient();
-}
-
-WebLayer* WebContentLayerImpl::layer()
-{
- return m_layer.get();
-}
-
-void WebContentLayerImpl::setDoubleSided(bool doubleSided)
-{
- m_layer->layer()->setDoubleSided(doubleSided);
-}
-
-void WebContentLayerImpl::setContentsScale(float scale)
-{
- m_layer->layer()->setContentsScale(scale);
-}
-
-void WebContentLayerImpl::setUseLCDText(bool enable)
-{
- m_layer->layer()->setUseLCDText(enable);
-}
-
-void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable)
-{
- m_layer->layer()->setDrawCheckerboardForMissingTiles(enable);
-}
-
-
-void WebContentLayerImpl::paintContents(SkCanvas* canvas, const IntRect& clip, FloatRect& opaque)
-{
- if (!m_client)
- return;
- WebFloatRect webOpaque;
- m_client->paintContents(canvas, WebRect(clip), webOpaque);
- opaque = webOpaque;
-}
-
-} // namespace WebKit
« no previous file with comments | « webkit/compositor/WebContentLayerImpl.h ('k') | webkit/compositor/WebExternalTextureLayerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698