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: Source/platform/graphics/GraphicsLayerDebugInfo.h

Issue 476683002: Cleanup namespace usage in platform/graphics/[G-S]* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 22 matching lines...) Expand all
33 33
34 #include "platform/JSONValues.h" 34 #include "platform/JSONValues.h"
35 #include "platform/geometry/LayoutRect.h" 35 #include "platform/geometry/LayoutRect.h"
36 #include "platform/graphics/CompositingReasons.h" 36 #include "platform/graphics/CompositingReasons.h"
37 #include "public/platform/WebGraphicsLayerDebugInfo.h" 37 #include "public/platform/WebGraphicsLayerDebugInfo.h"
38 38
39 #include "wtf/Vector.h" 39 #include "wtf/Vector.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class GraphicsLayerDebugInfo FINAL : public blink::WebGraphicsLayerDebugInfo { 43 class GraphicsLayerDebugInfo FINAL : public WebGraphicsLayerDebugInfo {
44 public: 44 public:
45 GraphicsLayerDebugInfo(); 45 GraphicsLayerDebugInfo();
46 virtual ~GraphicsLayerDebugInfo(); 46 virtual ~GraphicsLayerDebugInfo();
47 47
48 virtual void appendAsTraceFormat(blink::WebString* out) const OVERRIDE; 48 virtual void appendAsTraceFormat(WebString* out) const OVERRIDE;
49 49
50 GraphicsLayerDebugInfo* clone() const; 50 GraphicsLayerDebugInfo* clone() const;
51 51
52 void setDebugName(const String& name) { m_debugName = name; } 52 void setDebugName(const String& name) { m_debugName = name; }
53 CompositingReasons compositingReasons() const { return m_compositingReasons; } 53 CompositingReasons compositingReasons() const { return m_compositingReasons; }
54 void setCompositingReasons(CompositingReasons reasons) { m_compositingReason s = reasons; } 54 void setCompositingReasons(CompositingReasons reasons) { m_compositingReason s = reasons; }
55 void setOwnerNodeId(int id) { m_ownerNodeId = id; } 55 void setOwnerNodeId(int id) { m_ownerNodeId = id; }
56 Vector<LayoutRect>& currentLayoutRects() { return m_currentLayoutRects; } 56 Vector<LayoutRect>& currentLayoutRects() { return m_currentLayoutRects; }
57 57
58 private: 58 private:
59 void appendLayoutRects(JSONObject*) const; 59 void appendLayoutRects(JSONObject*) const;
60 void appendCompositingReasons(JSONObject*) const; 60 void appendCompositingReasons(JSONObject*) const;
61 void appendDebugName(JSONObject*) const; 61 void appendDebugName(JSONObject*) const;
62 void appendOwnerNodeId(JSONObject*) const; 62 void appendOwnerNodeId(JSONObject*) const;
63 63
64 String m_debugName; 64 String m_debugName;
65 CompositingReasons m_compositingReasons; 65 CompositingReasons m_compositingReasons;
66 int m_ownerNodeId; 66 int m_ownerNodeId;
67 Vector<LayoutRect> m_currentLayoutRects; 67 Vector<LayoutRect> m_currentLayoutRects;
68 }; 68 };
69 69
70 } // namespace blink 70 } // namespace blink
71 71
72 #endif 72 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.cpp ('k') | Source/platform/graphics/GraphicsLayerDebugInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698