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

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

Issue 1912893002: cc : Stop pushing properties not used by LayerImpl to LayerImpl. (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0; 183 virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0;
184 virtual WebLayerPositionConstraint positionConstraint() const = 0; 184 virtual WebLayerPositionConstraint positionConstraint() const = 0;
185 185
186 // The scroll client is notified when the scroll position of the WebLayer 186 // The scroll client is notified when the scroll position of the WebLayer
187 // changes. Only a single scroll client can be set for a WebLayer at a time. 187 // changes. Only a single scroll client can be set for a WebLayer at a time.
188 // The WebLayer does not take ownership of the scroll client, and it is the 188 // The WebLayer does not take ownership of the scroll client, and it is the
189 // responsibility of the client to reset the layer's scroll client before 189 // responsibility of the client to reset the layer's scroll client before
190 // deleting the scroll client. 190 // deleting the scroll client.
191 virtual void setScrollClient(WebLayerScrollClient*) = 0; 191 virtual void setScrollClient(WebLayerScrollClient*) = 0;
192 192
193 // Forces this layer to use a render surface. There is no benefit in doing
194 // so, but this is to facilitate benchmarks and tests.
195 virtual void setForceRenderSurface(bool) = 0;
196
197 // Sets the cc-side layer client. 193 // Sets the cc-side layer client.
198 virtual void setLayerClient(cc::LayerClient*) = 0; 194 virtual void setLayerClient(cc::LayerClient*) = 0;
199 195
200 // Gets the underlying cc layer. 196 // Gets the underlying cc layer.
201 virtual const cc::Layer* ccLayer() const = 0; 197 virtual const cc::Layer* ccLayer() const = 0;
202 virtual cc::Layer* ccLayer() = 0; 198 virtual cc::Layer* ccLayer() = 0;
203 199
204 virtual void setElementId(uint64_t) = 0; 200 virtual void setElementId(uint64_t) = 0;
205 virtual uint64_t elementId() const = 0; 201 virtual uint64_t elementId() const = 0;
206 202
207 virtual void setCompositorMutableProperties(uint32_t) = 0; 203 virtual void setCompositorMutableProperties(uint32_t) = 0;
208 virtual uint32_t compositorMutableProperties() const = 0; 204 virtual uint32_t compositorMutableProperties() const = 0;
209 }; 205 };
210 206
211 } // namespace blink 207 } // namespace blink
212 208
213 #endif // WebLayer_h 209 #endif // WebLayer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp ('k') | ui/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698