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

Side by Side Diff: cc/paint/compositing_display_item.h

Issue 2884563004: cc: Renamed approximate{BytesUsed,OpCount} in paint op buffer. (Closed)
Patch Set: winfix Created 3 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/paint/clip_path_display_item.h ('k') | cc/paint/display_item_list.h » ('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_PAINT_COMPOSITING_DISPLAY_ITEM_H_ 5 #ifndef CC_PAINT_COMPOSITING_DISPLAY_ITEM_H_
6 #define CC_PAINT_COMPOSITING_DISPLAY_ITEM_H_ 6 #define CC_PAINT_COMPOSITING_DISPLAY_ITEM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "cc/paint/display_item.h" 10 #include "cc/paint/display_item.h"
(...skipping 11 matching lines...) Expand all
22 SkBlendMode xfermode, 22 SkBlendMode xfermode,
23 SkRect* bounds, 23 SkRect* bounds,
24 sk_sp<SkColorFilter> color_filter, 24 sk_sp<SkColorFilter> color_filter,
25 bool lcd_text_requires_opaque_layer); 25 bool lcd_text_requires_opaque_layer);
26 ~CompositingDisplayItem() override; 26 ~CompositingDisplayItem() override;
27 27
28 size_t ExternalMemoryUsage() const { 28 size_t ExternalMemoryUsage() const {
29 // TODO(pdr): Include color_filter's memory here. 29 // TODO(pdr): Include color_filter's memory here.
30 return 0; 30 return 0;
31 } 31 }
32 int ApproximateOpCount() const { return 1; } 32 int OpCount() const { return 1; }
33 33
34 const uint8_t alpha; 34 const uint8_t alpha;
35 const SkBlendMode xfermode; 35 const SkBlendMode xfermode;
36 const bool has_bounds; 36 const bool has_bounds;
37 const SkRect bounds; 37 const SkRect bounds;
38 const sk_sp<SkColorFilter> color_filter; 38 const sk_sp<SkColorFilter> color_filter;
39 const bool lcd_text_requires_opaque_layer; 39 const bool lcd_text_requires_opaque_layer;
40 }; 40 };
41 41
42 class CC_PAINT_EXPORT EndCompositingDisplayItem : public DisplayItem { 42 class CC_PAINT_EXPORT EndCompositingDisplayItem : public DisplayItem {
43 public: 43 public:
44 EndCompositingDisplayItem(); 44 EndCompositingDisplayItem();
45 ~EndCompositingDisplayItem() override; 45 ~EndCompositingDisplayItem() override;
46 46
47 int ApproximateOpCount() const { return 0; } 47 int OpCount() const { return 0; }
48 }; 48 };
49 49
50 } // namespace cc 50 } // namespace cc
51 51
52 #endif // CC_PAINT_COMPOSITING_DISPLAY_ITEM_H_ 52 #endif // CC_PAINT_COMPOSITING_DISPLAY_ITEM_H_
OLDNEW
« no previous file with comments | « cc/paint/clip_path_display_item.h ('k') | cc/paint/display_item_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698