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

Side by Side Diff: public/platform/WebLayer.h

Issue 390193003: [not for review] Add Draw entries to window Performance Timeline (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code refactoring in RenderView Created 6 years, 5 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 virtual void setShouldScrollOnMainThread(bool) = 0; 180 virtual void setShouldScrollOnMainThread(bool) = 0;
181 virtual bool shouldScrollOnMainThread() const = 0; 181 virtual bool shouldScrollOnMainThread() const = 0;
182 182
183 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; 183 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0;
184 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; 184 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0;
185 185
186 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; 186 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0;
187 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; 187 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0;
188 188
189 virtual void setDrawFrameRequestRects(const WebVector<std::pair<int64_t, Web Rect> >&) = 0;
190 virtual WebVector<std::pair<int64_t, WebRect> > drawFrameRequestRects() cons t = 0;
191
189 virtual void setIsContainerForFixedPositionLayers(bool) = 0; 192 virtual void setIsContainerForFixedPositionLayers(bool) = 0;
190 virtual bool isContainerForFixedPositionLayers() const = 0; 193 virtual bool isContainerForFixedPositionLayers() const = 0;
191 194
192 // This function sets layer position constraint. The constraint will be used 195 // This function sets layer position constraint. The constraint will be used
193 // to adjust layer position during threaded scrolling. 196 // to adjust layer position during threaded scrolling.
194 virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0; 197 virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0;
195 virtual WebLayerPositionConstraint positionConstraint() const = 0; 198 virtual WebLayerPositionConstraint positionConstraint() const = 0;
196 199
197 // The scroll client is notified when the scroll position of the WebLayer 200 // The scroll client is notified when the scroll position of the WebLayer
198 // changes. Only a single scroll client can be set for a WebLayer at a time. 201 // changes. Only a single scroll client can be set for a WebLayer at a time.
199 // The WebLayer does not take ownership of the scroll client, and it is the 202 // The WebLayer does not take ownership of the scroll client, and it is the
200 // responsibility of the client to reset the layer's scroll client before 203 // responsibility of the client to reset the layer's scroll client before
201 // deleting the scroll client. 204 // deleting the scroll client.
202 virtual void setScrollClient(WebLayerScrollClient*) = 0; 205 virtual void setScrollClient(WebLayerScrollClient*) = 0;
203 206
204 // Forces this layer to use a render surface. There is no benefit in doing 207 // Forces this layer to use a render surface. There is no benefit in doing
205 // so, but this is to facilitate benchmarks and tests. 208 // so, but this is to facilitate benchmarks and tests.
206 virtual void setForceRenderSurface(bool) = 0; 209 virtual void setForceRenderSurface(bool) = 0;
207 210
208 // True if the layer is not part of a tree attached to a WebLayerTreeView. 211 // True if the layer is not part of a tree attached to a WebLayerTreeView.
209 virtual bool isOrphan() const = 0; 212 virtual bool isOrphan() const = 0;
210 213
211 virtual void setWebLayerClient(WebLayerClient*) = 0; 214 virtual void setWebLayerClient(WebLayerClient*) = 0;
212 }; 215 };
213 216
214 } // namespace blink 217 } // namespace blink
215 218
216 #endif // WebLayer_h 219 #endif // WebLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698