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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/filter_display_item.cc ('k') | cc/resources/float_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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CC_RESOURCES_FLOAT_CLIP_DISPLAY_ITEM_H_ 5 #ifndef CC_RESOURCES_FLOAT_CLIP_DISPLAY_ITEM_H_
6 #define CC_RESOURCES_FLOAT_CLIP_DISPLAY_ITEM_H_ 6 #define CC_RESOURCES_FLOAT_CLIP_DISPLAY_ITEM_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 12 matching lines...) Expand all
23 23
24 static scoped_ptr<FloatClipDisplayItem> Create(gfx::RectF clip_rect) { 24 static scoped_ptr<FloatClipDisplayItem> Create(gfx::RectF clip_rect) {
25 return make_scoped_ptr(new FloatClipDisplayItem(clip_rect)); 25 return make_scoped_ptr(new FloatClipDisplayItem(clip_rect));
26 } 26 }
27 27
28 void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override; 28 void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override;
29 29
30 bool IsSuitableForGpuRasterization() const override; 30 bool IsSuitableForGpuRasterization() const override;
31 int ApproximateOpCount() const override; 31 int ApproximateOpCount() const override;
32 size_t PictureMemoryUsage() const override; 32 size_t PictureMemoryUsage() const override;
33 void AsValueInto(base::debug::TracedValue* array) const override; 33 void AsValueInto(base::trace_event::TracedValue* array) const override;
34 34
35 protected: 35 protected:
36 explicit FloatClipDisplayItem(gfx::RectF clip_rect); 36 explicit FloatClipDisplayItem(gfx::RectF clip_rect);
37 37
38 private: 38 private:
39 gfx::RectF clip_rect_; 39 gfx::RectF clip_rect_;
40 }; 40 };
41 41
42 class CC_EXPORT EndFloatClipDisplayItem : public DisplayItem { 42 class CC_EXPORT EndFloatClipDisplayItem : public DisplayItem {
43 public: 43 public:
44 ~EndFloatClipDisplayItem() override; 44 ~EndFloatClipDisplayItem() override;
45 45
46 static scoped_ptr<EndFloatClipDisplayItem> Create() { 46 static scoped_ptr<EndFloatClipDisplayItem> Create() {
47 return make_scoped_ptr(new EndFloatClipDisplayItem()); 47 return make_scoped_ptr(new EndFloatClipDisplayItem());
48 } 48 }
49 49
50 void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override; 50 void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override;
51 51
52 bool IsSuitableForGpuRasterization() const override; 52 bool IsSuitableForGpuRasterization() const override;
53 int ApproximateOpCount() const override; 53 int ApproximateOpCount() const override;
54 size_t PictureMemoryUsage() const override; 54 size_t PictureMemoryUsage() const override;
55 void AsValueInto(base::debug::TracedValue* array) const override; 55 void AsValueInto(base::trace_event::TracedValue* array) const override;
56 56
57 protected: 57 protected:
58 EndFloatClipDisplayItem(); 58 EndFloatClipDisplayItem();
59 }; 59 };
60 60
61 } // namespace cc 61 } // namespace cc
62 62
63 #endif // CC_RESOURCES_FLOAT_CLIP_DISPLAY_ITEM_H_ 63 #endif // CC_RESOURCES_FLOAT_CLIP_DISPLAY_ITEM_H_
OLDNEW
« no previous file with comments | « cc/resources/filter_display_item.cc ('k') | cc/resources/float_clip_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698