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

Side by Side Diff: cc/paint/clip_display_item.cc

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: none Created 3 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 unified diff | Download patch
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 "cc/playback/clip_display_item.h" 5 #include "cc/paint/clip_display_item.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "base/trace_event/trace_event_argument.h" 13 #include "base/trace_event/trace_event_argument.h"
14 #include "third_party/skia/include/core/SkCanvas.h" 14 #include "third_party/skia/include/core/SkCanvas.h"
15 #include "ui/gfx/skia_util.h" 15 #include "ui/gfx/skia_util.h"
(...skipping 26 matching lines...) Expand all
42 if (rounded_clip_rects_[i].isRect()) { 42 if (rounded_clip_rects_[i].isRect()) {
43 canvas->clipRect(rounded_clip_rects_[i].rect(), antialias_); 43 canvas->clipRect(rounded_clip_rects_[i].rect(), antialias_);
44 } else { 44 } else {
45 canvas->clipRRect(rounded_clip_rects_[i], antialias_); 45 canvas->clipRRect(rounded_clip_rects_[i], antialias_);
46 } 46 }
47 } 47 }
48 } 48 }
49 49
50 EndClipDisplayItem::EndClipDisplayItem() : DisplayItem(END_CLIP) {} 50 EndClipDisplayItem::EndClipDisplayItem() : DisplayItem(END_CLIP) {}
51 51
52 EndClipDisplayItem::~EndClipDisplayItem() { 52 EndClipDisplayItem::~EndClipDisplayItem() {}
53 }
54 53
55 void EndClipDisplayItem::Raster(SkCanvas* canvas, 54 void EndClipDisplayItem::Raster(SkCanvas* canvas,
56 SkPicture::AbortCallback* callback) const { 55 SkPicture::AbortCallback* callback) const {
57 canvas->restore(); 56 canvas->restore();
58 } 57 }
59 58
60 } // namespace cc 59 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698