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

Unified Diff: Source/platform/graphics/paint/ClipDisplayItem.cpp

Issue 815933006: Change all uses of the RoundedRect class to use FloatRoundedRect instead. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 | « Source/platform/graphics/paint/ClipDisplayItem.h ('k') | Source/platform/graphics/paint/ClipRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/ClipDisplayItem.cpp
diff --git a/Source/platform/graphics/paint/ClipDisplayItem.cpp b/Source/platform/graphics/paint/ClipDisplayItem.cpp
index 51a2d9bffdc336985d9d3b476495658b3ce9e090..bb8e6ce8c44bea04a388146b39e6aab3227dccdb 100644
--- a/Source/platform/graphics/paint/ClipDisplayItem.cpp
+++ b/Source/platform/graphics/paint/ClipDisplayItem.cpp
@@ -5,7 +5,7 @@
#include "config.h"
#include "platform/graphics/paint/ClipDisplayItem.h"
-#include "platform/geometry/RoundedRect.h"
+#include "platform/geometry/FloatRoundedRect.h"
#include "platform/graphics/GraphicsContext.h"
#include "public/platform/WebDisplayItemList.h"
#include "third_party/skia/include/core/SkScalar.h"
@@ -16,7 +16,7 @@ void ClipDisplayItem::replay(GraphicsContext* context)
{
context->save();
context->clipRect(m_clipRect, NotAntiAliased, m_operation);
- for (RoundedRect roundedRect : m_roundedRectClips)
+ for (FloatRoundedRect roundedRect : m_roundedRectClips)
context->clipRoundedRect(roundedRect, m_operation);
}
@@ -24,7 +24,7 @@ void ClipDisplayItem::appendToWebDisplayItemList(WebDisplayItemList* list) const
{
WebVector<SkRRect> webRoundedRects(m_roundedRectClips.size());
for (size_t i = 0; i < m_roundedRectClips.size(); ++i) {
- RoundedRect::Radii rectRadii = m_roundedRectClips[i].radii();
+ FloatRoundedRect::Radii rectRadii = m_roundedRectClips[i].radii();
SkVector skRadii[4];
skRadii[SkRRect::kUpperLeft_Corner].set(SkIntToScalar(rectRadii.topLeft().width()),
SkIntToScalar(rectRadii.topLeft().height()));
« no previous file with comments | « Source/platform/graphics/paint/ClipDisplayItem.h ('k') | Source/platform/graphics/paint/ClipRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698