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

Side by Side Diff: Source/platform/graphics/paint/ClipRecorder.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 5 years, 12 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "platform/graphics/paint/ClipRecorder.h" 6 #include "platform/graphics/paint/ClipRecorder.h"
7 7
8 #include "platform/RuntimeEnabledFeatures.h" 8 #include "platform/RuntimeEnabledFeatures.h"
9 #include "platform/geometry/RoundedRect.h"
10 #include "platform/graphics/GraphicsContext.h" 9 #include "platform/graphics/GraphicsContext.h"
11 #include "platform/graphics/paint/ClipDisplayItem.h" 10 #include "platform/graphics/paint/ClipDisplayItem.h"
12 #include "platform/graphics/paint/DisplayItemList.h" 11 #include "platform/graphics/paint/DisplayItemList.h"
13 12
14 namespace blink { 13 namespace blink {
15 14
16 ClipRecorder::ClipRecorder(DisplayItemClient client, GraphicsContext* context, D isplayItem::Type type, const LayoutRect& clipRect, SkRegion::Op operation) 15 ClipRecorder::ClipRecorder(DisplayItemClient client, GraphicsContext* context, D isplayItem::Type type, const LayoutRect& clipRect, SkRegion::Op operation)
17 : m_client(client) 16 : m_client(client)
18 , m_context(context) 17 , m_context(context)
19 { 18 {
(...skipping 13 matching lines...) Expand all
33 32
34 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) { 33 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
35 ASSERT(m_context->displayItemList()); 34 ASSERT(m_context->displayItemList());
36 m_context->displayItemList()->add(endClipDisplayItem.release()); 35 m_context->displayItemList()->add(endClipDisplayItem.release());
37 } else { 36 } else {
38 endClipDisplayItem->replay(m_context); 37 endClipDisplayItem->replay(m_context);
39 } 38 }
40 } 39 }
41 40
42 } // namespace blink 41 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/paint/ClipDisplayItem.cpp ('k') | Source/platform/graphics/paint/FloatClipDisplayItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698