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

Side by Side Diff: cc/resources/clip_display_item.h

Issue 1144693002: cc: Move files out of cc/resources/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resources: android Created 5 years, 7 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
« no previous file with comments | « cc/resources/bitmap_tile_task_worker_pool.cc ('k') | cc/resources/clip_display_item.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_RESOURCES_CLIP_DISPLAY_ITEM_H_
6 #define CC_RESOURCES_CLIP_DISPLAY_ITEM_H_
7
8 #include <vector>
9
10 #include "base/memory/scoped_ptr.h"
11 #include "cc/base/cc_export.h"
12 #include "cc/resources/display_item.h"
13 #include "third_party/skia/include/core/SkRRect.h"
14 #include "ui/gfx/geometry/rect.h"
15
16 class SkCanvas;
17 class SkDrawPictureCallback;
18
19 namespace cc {
20
21 class CC_EXPORT ClipDisplayItem : public DisplayItem {
22 public:
23 ClipDisplayItem();
24 ~ClipDisplayItem() override;
25
26 void SetNew(gfx::Rect clip_rect,
27 const std::vector<SkRRect>& rounded_clip_rects);
28
29 void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override;
30 void AsValueInto(base::trace_event::TracedValue* array) const override;
31
32 private:
33 gfx::Rect clip_rect_;
34 std::vector<SkRRect> rounded_clip_rects_;
35 };
36
37 class CC_EXPORT EndClipDisplayItem : public DisplayItem {
38 public:
39 EndClipDisplayItem();
40 ~EndClipDisplayItem() override;
41
42 void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override;
43 void AsValueInto(base::trace_event::TracedValue* array) const override;
44 };
45
46 } // namespace cc
47
48 #endif // CC_RESOURCES_CLIP_DISPLAY_ITEM_H_
OLDNEW
« no previous file with comments | « cc/resources/bitmap_tile_task_worker_pool.cc ('k') | cc/resources/clip_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698