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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp

Issue 2291723002: Manually rename \<m_[0-9]... fields to help rewrite_to_chrome_style tool. (Closed)
Patch Set: Created 4 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 | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index fe76a63614b9016ca49950efab9374ee4d8b1172..0a581115a49d2b1bb6ff4d44ca6183bb24e1d12a 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -139,7 +139,7 @@ GraphicsLayer::GraphicsLayer(GraphicsLayerClient* client)
, m_contentsLayer(0)
, m_contentsLayerId(0)
, m_scrollableArea(nullptr)
- , m_3dRenderingContext(0)
+ , m_renderingContext3d(0)
{
#if ENABLE(ASSERT)
if (m_client)
@@ -518,7 +518,7 @@ void GraphicsLayer::setupContentsLayer(WebLayer* contentsLayer)
WebLayer* borderWebLayer = m_contentsClippingMaskLayer ? m_contentsClippingMaskLayer->platformLayer() : 0;
m_contentsLayer->setMaskLayer(borderWebLayer);
- m_contentsLayer->setRenderingContext(m_3dRenderingContext);
+ m_contentsLayer->setRenderingContext(m_renderingContext3d);
}
void GraphicsLayer::clearContentsLayerIfUnregistered()
@@ -727,11 +727,11 @@ std::unique_ptr<JSONObject> GraphicsLayer::layerTreeAsJSONInternal(LayerTreeFlag
if (!m_shouldFlattenTransform)
json->setBoolean("shouldFlattenTransform", m_shouldFlattenTransform);
- if (m_3dRenderingContext) {
- RenderingContextMap::const_iterator it = renderingContextMap.find(m_3dRenderingContext);
+ if (m_renderingContext3d) {
+ RenderingContextMap::const_iterator it = renderingContextMap.find(m_renderingContext3d);
int contextId = renderingContextMap.size() + 1;
if (it == renderingContextMap.end())
- renderingContextMap.set(m_3dRenderingContext, contextId);
+ renderingContextMap.set(m_renderingContext3d, contextId);
else
contextId = it->value;
@@ -948,14 +948,14 @@ void GraphicsLayer::setShouldFlattenTransform(bool shouldFlatten)
void GraphicsLayer::setRenderingContext(int context)
{
- if (m_3dRenderingContext == context)
+ if (m_renderingContext3d == context)
return;
- m_3dRenderingContext = context;
+ m_renderingContext3d = context;
m_layer->layer()->setRenderingContext(context);
if (m_contentsLayer)
- m_contentsLayer->setRenderingContext(m_3dRenderingContext);
+ m_contentsLayer->setRenderingContext(m_renderingContext3d);
}
void GraphicsLayer::setMasksToBounds(bool masksToBounds)
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698