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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.h

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years 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) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 void disable(ErrorString*) override; 66 void disable(ErrorString*) override;
67 void restore() override; 67 void restore() override;
68 68
69 // Called from InspectorController 69 // Called from InspectorController
70 void willAddPageOverlay(const GraphicsLayer*); 70 void willAddPageOverlay(const GraphicsLayer*);
71 void didRemovePageOverlay(const GraphicsLayer*); 71 void didRemovePageOverlay(const GraphicsLayer*);
72 72
73 // Called from InspectorInstrumentation 73 // Called from InspectorInstrumentation
74 void layerTreeDidChange(); 74 void layerTreeDidChange();
75 void didPaint(LayoutObject*, const GraphicsLayer*, GraphicsContext*, const L ayoutRect&); 75 void didPaint(LayoutObject*, const GraphicsLayer*, GraphicsContext&, const L ayoutRect&);
76 76
77 // Called from the front-end. 77 // Called from the front-end.
78 void enable(ErrorString*) override; 78 void enable(ErrorString*) override;
79 void compositingReasons(ErrorString*, const String& layerId, RefPtr<TypeBuil der::Array<String>>&) override; 79 void compositingReasons(ErrorString*, const String& layerId, RefPtr<TypeBuil der::Array<String>>&) override;
80 void makeSnapshot(ErrorString*, const String& layerId, String* snapshotId) o verride; 80 void makeSnapshot(ErrorString*, const String& layerId, String* snapshotId) o verride;
81 void loadSnapshot(ErrorString*, const RefPtr<JSONArray>& tiles, String* snap shotId) override; 81 void loadSnapshot(ErrorString*, const RefPtr<JSONArray>& tiles, String* snap shotId) override;
82 void releaseSnapshot(ErrorString*, const String& snapshotId) override; 82 void releaseSnapshot(ErrorString*, const String& snapshotId) override;
83 void replaySnapshot(ErrorString*, const String& snapshotId, const int* fromS tep, const int* toStep, const double* scale, String* dataURL) override; 83 void replaySnapshot(ErrorString*, const String& snapshotId, const int* fromS tep, const int* toStep, const double* scale, String* dataURL) override;
84 void profileSnapshot(ErrorString*, const String& snapshotId, const int* minR epeatCount, const double* minDuration, const RefPtr<JSONObject>* clipRect, RefPt r<TypeBuilder::Array<TypeBuilder::Array<double>>>&) override; 84 void profileSnapshot(ErrorString*, const String& snapshotId, const int* minR epeatCount, const double* minDuration, const RefPtr<JSONObject>* clipRect, RefPt r<TypeBuilder::Array<TypeBuilder::Array<double>>>&) override;
85 void snapshotCommandLog(ErrorString*, const String& snapshotId, RefPtr<TypeB uilder::Array<JSONObject>>&) override; 85 void snapshotCommandLog(ErrorString*, const String& snapshotId, RefPtr<TypeB uilder::Array<JSONObject>>&) override;
(...skipping 21 matching lines...) Expand all
107 Vector<int, 2> m_pageOverlayLayerIds; 107 Vector<int, 2> m_pageOverlayLayerIds;
108 108
109 typedef HashMap<String, RefPtr<PictureSnapshot> > SnapshotById; 109 typedef HashMap<String, RefPtr<PictureSnapshot> > SnapshotById;
110 SnapshotById m_snapshotById; 110 SnapshotById m_snapshotById;
111 }; 111 };
112 112
113 } // namespace blink 113 } // namespace blink
114 114
115 115
116 #endif // !defined(InspectorLayerTreeAgent_h) 116 #endif // !defined(InspectorLayerTreeAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698