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

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

Issue 1142283004: Implement a Hit Test Cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix comments from tdresser Created 5 years, 6 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 virtual void setScrollClient(WebLayerScrollClient*) = 0; 224 virtual void setScrollClient(WebLayerScrollClient*) = 0;
225 225
226 // Forces this layer to use a render surface. There is no benefit in doing 226 // Forces this layer to use a render surface. There is no benefit in doing
227 // so, but this is to facilitate benchmarks and tests. 227 // so, but this is to facilitate benchmarks and tests.
228 virtual void setForceRenderSurface(bool) = 0; 228 virtual void setForceRenderSurface(bool) = 0;
229 229
230 // True if the layer is not part of a tree attached to a WebLayerTreeView. 230 // True if the layer is not part of a tree attached to a WebLayerTreeView.
231 virtual bool isOrphan() const = 0; 231 virtual bool isOrphan() const = 0;
232 232
233 virtual void setWebLayerClient(WebLayerClient*) = 0; 233 virtual void setWebLayerClient(WebLayerClient*) = 0;
234
235 // TODO(dtapuska): Make pure virtual once cc side has landed crbug.com/39892 0.
236 virtual void setHitCacheRect(const WebRect&) { };
esprehn 2015/06/12 05:09:30 I'd probably call this HitTestCache since that's a
dtapuska 2015/06/12 15:30:38 Done.
234 }; 237 };
235 238
236 } // namespace blink 239 } // namespace blink
237 240
238 #endif // WebLayer_h 241 #endif // WebLayer_h
OLDNEW
« Source/core/layout/HitTestCache.cpp ('K') | « Source/platform/geometry/LayoutRect.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698