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

Side by Side Diff: cc/blink/web_layer_impl.cc

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
« no previous file with comments | « cc/blink/web_layer_impl.h ('k') | cc/layers/layer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/blink/web_layer_impl.h" 5 #include "cc/blink/web_layer_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 208 }
209 209
210 void WebLayerImpl::setBackgroundFilters(const cc::FilterOperations& filters) { 210 void WebLayerImpl::setBackgroundFilters(const cc::FilterOperations& filters) {
211 layer_->SetBackgroundFilters(filters); 211 layer_->SetBackgroundFilters(filters);
212 } 212 }
213 213
214 bool WebLayerImpl::hasActiveAnimationForTesting() { 214 bool WebLayerImpl::hasActiveAnimationForTesting() {
215 return layer_->HasActiveAnimationForTesting(); 215 return layer_->HasActiveAnimationForTesting();
216 } 216 }
217 217
218 void WebLayerImpl::setForceRenderSurface(bool force_render_surface) {
219 layer_->SetForceRenderSurface(force_render_surface);
220 }
221
222 void WebLayerImpl::setScrollPositionDouble(blink::WebDoublePoint position) { 218 void WebLayerImpl::setScrollPositionDouble(blink::WebDoublePoint position) {
223 layer_->SetScrollOffset(gfx::ScrollOffset(position.x, position.y)); 219 layer_->SetScrollOffset(gfx::ScrollOffset(position.x, position.y));
224 } 220 }
225 221
226 blink::WebDoublePoint WebLayerImpl::scrollPositionDouble() const { 222 blink::WebDoublePoint WebLayerImpl::scrollPositionDouble() const {
227 return blink::WebDoublePoint(layer_->scroll_offset().x(), 223 return blink::WebDoublePoint(layer_->scroll_offset().x(),
228 layer_->scroll_offset().y()); 224 layer_->scroll_offset().y());
229 } 225 }
230 226
231 void WebLayerImpl::setScrollClipLayer(WebLayer* clip_layer) { 227 void WebLayerImpl::setScrollClipLayer(WebLayer* clip_layer) {
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 411
416 Layer* WebLayerImpl::layer() const { 412 Layer* WebLayerImpl::layer() const {
417 return layer_.get(); 413 return layer_.get();
418 } 414 }
419 415
420 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) { 416 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) {
421 contents_opaque_is_fixed_ = fixed; 417 contents_opaque_is_fixed_ = fixed;
422 } 418 }
423 419
424 } // namespace cc_blink 420 } // namespace cc_blink
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl.h ('k') | cc/layers/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698