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

Side by Side Diff: cc/resources/display_item_list.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/display_item.h ('k') | cc/resources/display_item_list.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 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 #ifndef CC_RESOURCES_DISPLAY_ITEM_LIST_H_ 5 #ifndef CC_RESOURCES_DISPLAY_ITEM_LIST_H_
6 #define CC_RESOURCES_DISPLAY_ITEM_LIST_H_ 6 #define CC_RESOURCES_DISPLAY_ITEM_LIST_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 18 matching lines...) Expand all
29 29
30 void AppendItem(scoped_ptr<DisplayItem> item); 30 void AppendItem(scoped_ptr<DisplayItem> item);
31 31
32 void set_layer_rect(gfx::Rect layer_rect) { layer_rect_ = layer_rect; } 32 void set_layer_rect(gfx::Rect layer_rect) { layer_rect_ = layer_rect; }
33 gfx::Rect layer_rect() const { return layer_rect_; } 33 gfx::Rect layer_rect() const { return layer_rect_; }
34 34
35 bool IsSuitableForGpuRasterization() const; 35 bool IsSuitableForGpuRasterization() const;
36 int ApproximateOpCount() const; 36 int ApproximateOpCount() const;
37 size_t PictureMemoryUsage() const; 37 size_t PictureMemoryUsage() const;
38 38
39 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const; 39 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const;
40 40
41 void EmitTraceSnapshot() const; 41 void EmitTraceSnapshot() const;
42 42
43 private: 43 private:
44 DisplayItemList(); 44 DisplayItemList();
45 ~DisplayItemList(); 45 ~DisplayItemList();
46 ScopedPtrVector<DisplayItem> items_; 46 ScopedPtrVector<DisplayItem> items_;
47 gfx::Rect layer_rect_; 47 gfx::Rect layer_rect_;
48 bool is_suitable_for_gpu_rasterization_; 48 bool is_suitable_for_gpu_rasterization_;
49 int approximate_op_count_; 49 int approximate_op_count_;
50 50
51 friend class base::RefCountedThreadSafe<DisplayItemList>; 51 friend class base::RefCountedThreadSafe<DisplayItemList>;
52 DISALLOW_COPY_AND_ASSIGN(DisplayItemList); 52 DISALLOW_COPY_AND_ASSIGN(DisplayItemList);
53 }; 53 };
54 54
55 } // namespace cc 55 } // namespace cc
56 56
57 #endif // CC_RESOURCES_DISPLAY_ITEM_LIST_H_ 57 #endif // CC_RESOURCES_DISPLAY_ITEM_LIST_H_
OLDNEW
« no previous file with comments | « cc/resources/display_item.h ('k') | cc/resources/display_item_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698