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

Side by Side Diff: ui/compositor/layer.h

Issue 1437413002: cc: Remove ScopedPtrVector and cc::remove_if. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + fix Created 5 years, 1 month 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_COMPOSITOR_LAYER_H_ 5 #ifndef UI_COMPOSITOR_LAYER_H_
6 #define UI_COMPOSITOR_LAYER_H_ 6 #define UI_COMPOSITOR_LAYER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "cc/animation/animation_events.h" 15 #include "cc/animation/animation_events.h"
16 #include "cc/animation/layer_animation_event_observer.h" 16 #include "cc/animation/layer_animation_event_observer.h"
17 #include "cc/base/region.h" 17 #include "cc/base/region.h"
18 #include "cc/base/scoped_ptr_vector.h"
19 #include "cc/layers/content_layer_client.h" 18 #include "cc/layers/content_layer_client.h"
20 #include "cc/layers/layer_client.h" 19 #include "cc/layers/layer_client.h"
21 #include "cc/layers/surface_layer.h" 20 #include "cc/layers/surface_layer.h"
22 #include "cc/layers/texture_layer_client.h" 21 #include "cc/layers/texture_layer_client.h"
23 #include "cc/resources/texture_mailbox.h" 22 #include "cc/resources/texture_mailbox.h"
24 #include "cc/surfaces/surface_id.h" 23 #include "cc/surfaces/surface_id.h"
25 #include "third_party/skia/include/core/SkColor.h" 24 #include "third_party/skia/include/core/SkColor.h"
26 #include "third_party/skia/include/core/SkRegion.h" 25 #include "third_party/skia/include/core/SkRegion.h"
27 #include "ui/compositor/compositor.h" 26 #include "ui/compositor/compositor.h"
28 #include "ui/compositor/layer_animation_delegate.h" 27 #include "ui/compositor/layer_animation_delegate.h"
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 std::string name_; 497 std::string name_;
499 498
500 LayerDelegate* delegate_; 499 LayerDelegate* delegate_;
501 500
502 LayerOwner* owner_; 501 LayerOwner* owner_;
503 502
504 scoped_refptr<LayerAnimator> animator_; 503 scoped_refptr<LayerAnimator> animator_;
505 504
506 // Animations that are passed to AddThreadedAnimation before this layer is 505 // Animations that are passed to AddThreadedAnimation before this layer is
507 // added to a tree. 506 // added to a tree.
508 cc::ScopedPtrVector<cc::Animation> pending_threaded_animations_; 507 std::vector<scoped_ptr<cc::Animation>> pending_threaded_animations_;
509 508
510 // Ownership of the layer is held through one of the strongly typed layer 509 // Ownership of the layer is held through one of the strongly typed layer
511 // pointers, depending on which sort of layer this is. 510 // pointers, depending on which sort of layer this is.
512 scoped_refptr<cc::Layer> content_layer_; 511 scoped_refptr<cc::Layer> content_layer_;
513 scoped_refptr<cc::NinePatchLayer> nine_patch_layer_; 512 scoped_refptr<cc::NinePatchLayer> nine_patch_layer_;
514 scoped_refptr<cc::TextureLayer> texture_layer_; 513 scoped_refptr<cc::TextureLayer> texture_layer_;
515 scoped_refptr<cc::SolidColorLayer> solid_color_layer_; 514 scoped_refptr<cc::SolidColorLayer> solid_color_layer_;
516 scoped_refptr<cc::DelegatedRendererLayer> delegated_renderer_layer_; 515 scoped_refptr<cc::DelegatedRendererLayer> delegated_renderer_layer_;
517 scoped_refptr<cc::SurfaceLayer> surface_layer_; 516 scoped_refptr<cc::SurfaceLayer> surface_layer_;
518 cc::Layer* cc_layer_; 517 cc::Layer* cc_layer_;
(...skipping 16 matching lines...) Expand all
535 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 534 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
536 // or SetTextureMailbox was called. 535 // or SetTextureMailbox was called.
537 gfx::Size frame_size_in_dip_; 536 gfx::Size frame_size_in_dip_;
538 537
539 DISALLOW_COPY_AND_ASSIGN(Layer); 538 DISALLOW_COPY_AND_ASSIGN(Layer);
540 }; 539 };
541 540
542 } // namespace ui 541 } // namespace ui
543 542
544 #endif // UI_COMPOSITOR_LAYER_H_ 543 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698