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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . Created 4 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 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 WTF_MAKE_NONCOPYABLE(GraphicsLayerDebugInfo); 53 WTF_MAKE_NONCOPYABLE(GraphicsLayerDebugInfo);
54 public: 54 public:
55 GraphicsLayerDebugInfo(); 55 GraphicsLayerDebugInfo();
56 ~GraphicsLayerDebugInfo(); 56 ~GraphicsLayerDebugInfo();
57 57
58 scoped_ptr<base::trace_event::TracedValue> asTracedValue() const; 58 scoped_ptr<base::trace_event::TracedValue> asTracedValue() const;
59 59
60 CompositingReasons getCompositingReasons() const { return m_compositingReaso ns; } 60 CompositingReasons getCompositingReasons() const { return m_compositingReaso ns; }
61 void setCompositingReasons(CompositingReasons reasons) { m_compositingReason s = reasons; } 61 void setCompositingReasons(CompositingReasons reasons) { m_compositingReason s = reasons; }
62 62
63 SquashingDisallowedReasons squashingDisallowedReasons() const { return m_squ ashingDisallowedReasons; } 63 SquashingDisallowedReasons getSquashingDisallowedReasons() const { return m_ squashingDisallowedReasons; }
64 void setSquashingDisallowedReasons(SquashingDisallowedReasons reasons) { m_s quashingDisallowedReasons = reasons; } 64 void setSquashingDisallowedReasons(SquashingDisallowedReasons reasons) { m_s quashingDisallowedReasons = reasons; }
65 void setOwnerNodeId(int id) { m_ownerNodeId = id; } 65 void setOwnerNodeId(int id) { m_ownerNodeId = id; }
66 66
67 void appendAnnotatedInvalidateRect(const FloatRect&, PaintInvalidationReason ); 67 void appendAnnotatedInvalidateRect(const FloatRect&, PaintInvalidationReason );
68 void clearAnnotatedInvalidateRects(); 68 void clearAnnotatedInvalidateRects();
69 69
70 private: 70 private:
71 void appendAnnotatedInvalidateRects(base::trace_event::TracedValue*) const; 71 void appendAnnotatedInvalidateRects(base::trace_event::TracedValue*) const;
72 void appendCompositingReasons(base::trace_event::TracedValue*) const; 72 void appendCompositingReasons(base::trace_event::TracedValue*) const;
73 void appendSquashingDisallowedReasons(base::trace_event::TracedValue*) const ; 73 void appendSquashingDisallowedReasons(base::trace_event::TracedValue*) const ;
74 void appendOwnerNodeId(base::trace_event::TracedValue*) const; 74 void appendOwnerNodeId(base::trace_event::TracedValue*) const;
75 75
76 struct AnnotatedInvalidationRect { 76 struct AnnotatedInvalidationRect {
77 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 77 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
78 FloatRect rect; 78 FloatRect rect;
79 PaintInvalidationReason reason; 79 PaintInvalidationReason reason;
80 }; 80 };
81 81
82 CompositingReasons m_compositingReasons; 82 CompositingReasons m_compositingReasons;
83 SquashingDisallowedReasons m_squashingDisallowedReasons; 83 SquashingDisallowedReasons m_squashingDisallowedReasons;
84 int m_ownerNodeId; 84 int m_ownerNodeId;
85 Vector<AnnotatedInvalidationRect> m_invalidations; 85 Vector<AnnotatedInvalidationRect> m_invalidations;
86 Vector<AnnotatedInvalidationRect> m_previousInvalidations; 86 Vector<AnnotatedInvalidationRect> m_previousInvalidations;
87 }; 87 };
88 88
89 } // namespace blink 89 } // namespace blink
90 90
91 #endif 91 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698