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

Unified Diff: cc/LayerChromium.cpp

Issue 10947047: Fix remaining cc files to compile with Clang (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix FakeCCDelayBasedTimeSource 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
« no previous file with comments | « cc/LayerChromium.h ('k') | cc/LayerTextureUpdater.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/LayerChromium.cpp
diff --git a/cc/LayerChromium.cpp b/cc/LayerChromium.cpp
index 59a63eff8e0db77d6557992b2e047f6dc01036ba..b053403fb81b3efd3af8aee6542ba54d102981f8 100644
--- a/cc/LayerChromium.cpp
+++ b/cc/LayerChromium.cpp
@@ -262,6 +262,11 @@ void LayerChromium::setBackgroundColor(SkColor backgroundColor)
setNeedsCommit();
}
+IntSize LayerChromium::contentBounds() const
+{
+ return bounds();
+}
+
void LayerChromium::setMasksToBounds(bool masksToBounds)
{
if (m_masksToBounds == masksToBounds)
@@ -316,6 +321,11 @@ void LayerChromium::setBackgroundFilters(const WebKit::WebFilterOperations& back
CCLayerTreeHost::setNeedsFilterContext(true);
}
+bool LayerChromium::needsDisplay() const
+{
+ return m_needsDisplay;
+}
+
void LayerChromium::setOpacity(float opacity)
{
if (m_opacity == opacity)
@@ -568,6 +578,21 @@ PassOwnPtr<CCLayerImpl> LayerChromium::createCCLayerImpl()
return CCLayerImpl::create(m_layerId);
}
+bool LayerChromium::drawsContent() const
+{
+ return m_isDrawable;
+}
+
+bool LayerChromium::needMoreUpdates()
+{
+ return false;
+}
+
+bool LayerChromium::needsContentsScale() const
+{
+ return false;
+}
+
void LayerChromium::setDebugBorderColor(SkColor color)
{
m_debugBorderColor = color;
@@ -620,6 +645,16 @@ bool LayerChromium::descendantDrawsContent()
return false;
}
+int LayerChromium::id() const
+{
+ return m_layerId;
+}
+
+float LayerChromium::opacity() const
+{
+ return m_opacity;
+}
+
void LayerChromium::setOpacityFromAnimation(float opacity)
{
// This is called due to an ongoing accelerated animation. Since this animation is
@@ -628,6 +663,11 @@ void LayerChromium::setOpacityFromAnimation(float opacity)
m_opacity = opacity;
}
+const WebKit::WebTransformationMatrix& LayerChromium::transform() const
+{
+ return m_transform;
+}
+
void LayerChromium::setTransformFromAnimation(const WebTransformationMatrix& transform)
{
// This is called due to an ongoing accelerated animation. Since this animation is
@@ -721,6 +761,11 @@ Region LayerChromium::visibleContentOpaqueRegion() const
return Region();
}
+ScrollbarLayerChromium* LayerChromium::toScrollbarLayerChromium()
+{
+ return 0;
+}
+
void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChromium> >::iterator, void*)
{
// Currently we don't use z-order to decide what to paint, so there's no need to actually sort LayerChromiums.
« no previous file with comments | « cc/LayerChromium.h ('k') | cc/LayerTextureUpdater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698