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

Side by Side Diff: cc/layers/layer.h

Issue 1819683002: Use sk_sp-based picture recording APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: skspify GetPicture/GetFlattenedPicture Created 4 years, 9 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_display_item_list_impl.cc ('k') | cc/layers/layer.cc » ('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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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 CC_LAYERS_LAYER_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 10 matching lines...) Expand all
21 #include "cc/base/cc_export.h" 21 #include "cc/base/cc_export.h"
22 #include "cc/base/region.h" 22 #include "cc/base/region.h"
23 #include "cc/debug/frame_timing_request.h" 23 #include "cc/debug/frame_timing_request.h"
24 #include "cc/debug/micro_benchmark.h" 24 #include "cc/debug/micro_benchmark.h"
25 #include "cc/input/input_handler.h" 25 #include "cc/input/input_handler.h"
26 #include "cc/layers/layer_lists.h" 26 #include "cc/layers/layer_lists.h"
27 #include "cc/layers/layer_position_constraint.h" 27 #include "cc/layers/layer_position_constraint.h"
28 #include "cc/layers/paint_properties.h" 28 #include "cc/layers/paint_properties.h"
29 #include "cc/output/filter_operations.h" 29 #include "cc/output/filter_operations.h"
30 #include "cc/trees/property_tree.h" 30 #include "cc/trees/property_tree.h"
31 #include "skia/ext/refptr.h"
32 #include "third_party/skia/include/core/SkColor.h" 31 #include "third_party/skia/include/core/SkColor.h"
33 #include "third_party/skia/include/core/SkImageFilter.h" 32 #include "third_party/skia/include/core/SkImageFilter.h"
34 #include "third_party/skia/include/core/SkPicture.h" 33 #include "third_party/skia/include/core/SkPicture.h"
35 #include "third_party/skia/include/core/SkXfermode.h" 34 #include "third_party/skia/include/core/SkXfermode.h"
36 #include "ui/gfx/geometry/point3_f.h" 35 #include "ui/gfx/geometry/point3_f.h"
37 #include "ui/gfx/geometry/rect.h" 36 #include "ui/gfx/geometry/rect.h"
38 #include "ui/gfx/geometry/rect_f.h" 37 #include "ui/gfx/geometry/rect_f.h"
39 #include "ui/gfx/geometry/scroll_offset.h" 38 #include "ui/gfx/geometry/scroll_offset.h"
40 #include "ui/gfx/transform.h" 39 #include "ui/gfx/transform.h"
41 40
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 // the current layer. The values for |needs_push_properties_| and 396 // the current layer. The values for |needs_push_properties_| and
398 // |num_dependents_need_push_properties_| are always updated, but the rest 397 // |num_dependents_need_push_properties_| are always updated, but the rest
399 // of |proto| is only read if |needs_push_properties_| is set. 398 // of |proto| is only read if |needs_push_properties_| is set.
400 void FromLayerPropertiesProto(const proto::LayerProperties& proto); 399 void FromLayerPropertiesProto(const proto::LayerProperties& proto);
401 400
402 LayerTreeHost* layer_tree_host() { return layer_tree_host_; } 401 LayerTreeHost* layer_tree_host() { return layer_tree_host_; }
403 const LayerTreeHost* layer_tree_host() const { return layer_tree_host_; } 402 const LayerTreeHost* layer_tree_host() const { return layer_tree_host_; }
404 403
405 virtual ScrollbarLayerInterface* ToScrollbarLayer(); 404 virtual ScrollbarLayerInterface* ToScrollbarLayer();
406 405
407 virtual skia::RefPtr<SkPicture> GetPicture() const; 406 virtual sk_sp<SkPicture> GetPicture() const;
408 407
409 // Constructs a LayerImpl of the correct runtime type for this Layer type. 408 // Constructs a LayerImpl of the correct runtime type for this Layer type.
410 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); 409 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl);
411 410
412 bool NeedsDisplayForTesting() const { return !update_rect_.IsEmpty(); } 411 bool NeedsDisplayForTesting() const { return !update_rect_.IsEmpty(); }
413 void ResetNeedsDisplayForTesting() { update_rect_ = gfx::Rect(); } 412 void ResetNeedsDisplayForTesting() { update_rect_ = gfx::Rect(); }
414 413
415 RenderingStatsInstrumentation* rendering_stats_instrumentation() const; 414 RenderingStatsInstrumentation* rendering_stats_instrumentation() const;
416 415
417 const PaintProperties& paint_properties() const { 416 const PaintProperties& paint_properties() const {
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 729
731 std::vector<FrameTimingRequest> frame_timing_requests_; 730 std::vector<FrameTimingRequest> frame_timing_requests_;
732 bool frame_timing_requests_dirty_; 731 bool frame_timing_requests_dirty_;
733 732
734 DISALLOW_COPY_AND_ASSIGN(Layer); 733 DISALLOW_COPY_AND_ASSIGN(Layer);
735 }; 734 };
736 735
737 } // namespace cc 736 } // namespace cc
738 737
739 #endif // CC_LAYERS_LAYER_H_ 738 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/blink/web_display_item_list_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698