[chromium] Improved composited debug borders
[WebKit-https.git] / Source / WebCore / platform / graphics / chromium / cc / CCRenderSurface.cpp
index 363b5e80e92f129998800ec0750baca12dbad354..4288bcbb16bbf472ede16642306e97be179a445f 100644 (file)
@@ -268,6 +268,11 @@ int CCRenderSurface::owningLayerId() const
     return m_owningLayer ? m_owningLayer->id() : 0;
 }
 
+bool CCRenderSurface::hasReplica()
+{
+    return m_owningLayer->replicaLayer();
+}
+
 void CCRenderSurface::setClipRect(const IntRect& clipRect)
 {
     if (m_clipRect == clipRect)
@@ -311,5 +316,11 @@ PassOwnPtr<CCSharedQuadState> CCRenderSurface::createSharedQuadState() const
     return CCSharedQuadState::create(originTransform(), drawTransform(), contentRect(), clipRect(), drawOpacity(), isOpaque);
 }
 
+PassOwnPtr<CCSharedQuadState> CCRenderSurface::createReplicaSharedQuadState() const
+{
+    bool isOpaque = false;
+    return CCSharedQuadState::create(replicaOriginTransform(), replicaDrawTransform(), contentRect(), clipRect(), drawOpacity(), isOpaque);
+}
+
 }
 #endif // USE(ACCELERATED_COMPOSITING)