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

Unified Diff: content/common/cc_messages.cc

Issue 12630014: Remove ifdefs that are not needed once WebKit rolls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/render_surface_filters.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/cc_messages.cc
diff --git a/content/common/cc_messages.cc b/content/common/cc_messages.cc
index f4cf17b24d23d2d8509dfc7202aa274ada0922ad..012b434e55e1c528320f09400ac0d3c721f3fc5e 100644
--- a/content/common/cc_messages.cc
+++ b/content/common/cc_messages.cc
@@ -38,10 +38,8 @@ void ParamTraits<WebKit::WebFilterOperation>::Write(
WriteParam(m, p.matrix()[i]);
break;
case WebKit::WebFilterOperation::FilterTypeZoom:
-#ifdef NEW_ZOOM_FILTER // TODO(danakj): Remove this when WebKit rolls.
WriteParam(m, p.amount());
WriteParam(m, p.zoomInset());
-#endif
break;
}
}
@@ -53,9 +51,7 @@ bool ParamTraits<WebKit::WebFilterOperation>::Read(
WebKit::WebPoint dropShadowOffset;
WebKit::WebColor dropShadowColor;
SkScalar matrix[20];
-#ifdef NEW_ZOOM_FILTER // TODO(danakj): Remove this when WebKit rolls.
int zoom_inset;
-#endif
if (!ReadParam(m, iter, &type))
return false;
@@ -101,7 +97,6 @@ bool ParamTraits<WebKit::WebFilterOperation>::Read(
break;
}
case WebKit::WebFilterOperation::FilterTypeZoom:
-#ifdef NEW_ZOOM_FILTER // TODO(danakj): Remove this when WebKit rolls.
if (ReadParam(m, iter, &amount) &&
ReadParam(m, iter, &zoom_inset) &&
amount >= 0.f &&
@@ -110,7 +105,6 @@ bool ParamTraits<WebKit::WebFilterOperation>::Read(
r->setZoomInset(zoom_inset);
success = true;
}
-#endif
break;
}
return success;
@@ -150,11 +144,9 @@ void ParamTraits<WebKit::WebFilterOperation>::Log(
}
break;
case WebKit::WebFilterOperation::FilterTypeZoom:
-#ifdef NEW_ZOOM_FILTER // TODO(danakj): Remove this when WebKit rolls.
LogParam(p.amount(), l);
l->append(", ");
LogParam(p.zoomInset(), l);
-#endif
break;
}
l->append(")");
« no previous file with comments | « cc/render_surface_filters.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698