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

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

Issue 2049063002: Revert of Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « cc/blink/web_layer_impl.h ('k') | cc/cc.gyp » ('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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
15 #include "base/threading/thread_checker.h" 15 #include "base/threading/thread_checker.h"
16 #include "base/trace_event/trace_event_impl.h" 16 #include "base/trace_event/trace_event_impl.h"
17 #include "cc/animation/element_id.h"
18 #include "cc/base/region.h" 17 #include "cc/base/region.h"
19 #include "cc/base/switches.h" 18 #include "cc/base/switches.h"
20 #include "cc/blink/web_blend_mode.h" 19 #include "cc/blink/web_blend_mode.h"
21 #include "cc/layers/layer.h" 20 #include "cc/layers/layer.h"
22 #include "cc/layers/layer_position_constraint.h" 21 #include "cc/layers/layer_position_constraint.h"
23 #include "cc/trees/layer_tree_host.h" 22 #include "cc/trees/layer_tree_host.h"
24 #include "third_party/WebKit/public/platform/WebFloatPoint.h" 23 #include "third_party/WebKit/public/platform/WebFloatPoint.h"
25 #include "third_party/WebKit/public/platform/WebFloatRect.h" 24 #include "third_party/WebKit/public/platform/WebFloatRect.h"
26 #include "third_party/WebKit/public/platform/WebLayerPositionConstraint.h" 25 #include "third_party/WebKit/public/platform/WebLayerPositionConstraint.h"
27 #include "third_party/WebKit/public/platform/WebLayerScrollClient.h" 26 #include "third_party/WebKit/public/platform/WebLayerScrollClient.h"
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 } 372 }
374 373
375 const cc::Layer* WebLayerImpl::ccLayer() const { 374 const cc::Layer* WebLayerImpl::ccLayer() const {
376 return layer_.get(); 375 return layer_.get();
377 } 376 }
378 377
379 cc::Layer* WebLayerImpl::ccLayer() { 378 cc::Layer* WebLayerImpl::ccLayer() {
380 return layer_.get(); 379 return layer_.get();
381 } 380 }
382 381
383 void WebLayerImpl::setElementId(const cc::ElementId& id) { 382 void WebLayerImpl::setElementId(uint64_t id) {
384 layer_->SetElementId(id); 383 layer_->SetElementId(id);
385 } 384 }
386 385
387 cc::ElementId WebLayerImpl::elementId() const { 386 uint64_t WebLayerImpl::elementId() const {
388 return layer_->element_id(); 387 return layer_->element_id();
389 } 388 }
390 389
391 void WebLayerImpl::setCompositorMutableProperties(uint32_t properties) { 390 void WebLayerImpl::setCompositorMutableProperties(uint32_t properties) {
392 layer_->SetMutableProperties(properties); 391 layer_->SetMutableProperties(properties);
393 } 392 }
394 393
395 uint32_t WebLayerImpl::compositorMutableProperties() const { 394 uint32_t WebLayerImpl::compositorMutableProperties() const {
396 return layer_->mutable_properties(); 395 return layer_->mutable_properties();
397 } 396 }
(...skipping 18 matching lines...) Expand all
416 415
417 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) { 416 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) {
418 contents_opaque_is_fixed_ = fixed; 417 contents_opaque_is_fixed_ = fixed;
419 } 418 }
420 419
421 void WebLayerImpl::setHasWillChangeTransformHint(bool has_will_change) { 420 void WebLayerImpl::setHasWillChangeTransformHint(bool has_will_change) {
422 layer_->SetHasWillChangeTransformHint(has_will_change); 421 layer_->SetHasWillChangeTransformHint(has_will_change);
423 } 422 }
424 423
425 } // namespace cc_blink 424 } // namespace cc_blink
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl.h ('k') | cc/cc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698