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

Unified Diff: webkit/compositor_bindings/WebContentLayerImpl.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/WebContentLayerImpl.cpp
diff --git a/webkit/compositor_bindings/WebContentLayerImpl.cpp b/webkit/compositor_bindings/WebContentLayerImpl.cpp
deleted file mode 100644
index 1f074160654f84d0b9caa2785a22fe568b7bc21b..0000000000000000000000000000000000000000
--- a/webkit/compositor_bindings/WebContentLayerImpl.cpp
+++ /dev/null
@@ -1,80 +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 "SkMatrix44.h"
-#include "cc/content_layer.h"
-#include "cc/stubs/float_rect.h"
-#include "cc/stubs/int_rect.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebContentLayerClient.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h"
-#include "webcore_convert.h"
-
-using namespace cc;
-
-namespace WebKit {
-
-WebContentLayer* WebContentLayer::create(WebContentLayerClient* client)
-{
- return new WebContentLayerImpl(client);
-}
-
-WebContentLayerImpl::WebContentLayerImpl(WebContentLayerClient* client)
- : m_layer(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::setBoundsContainPageScale(bool boundsContainPageScale)
-{
- return m_layer->layer()->setBoundsContainPageScale(boundsContainPageScale);
-}
-
-bool WebContentLayerImpl::boundsContainPageScale() const
-{
- return m_layer->layer()->boundsContainPageScale();
-}
-
-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, convert(clip), webOpaque);
- opaque = convert(webOpaque);
-}
-
-} // namespace WebKit
« no previous file with comments | « webkit/compositor_bindings/WebContentLayerImpl.h ('k') | webkit/compositor_bindings/WebDelegatedRendererLayerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698