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

Side by Side Diff: cc/layers/layer_impl.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/layers/layer.cc ('k') | cc/layers/layer_impl.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 14 matching lines...) Expand all
25 #include "cc/input/input_handler.h" 25 #include "cc/input/input_handler.h"
26 #include "cc/layers/draw_properties.h" 26 #include "cc/layers/draw_properties.h"
27 #include "cc/layers/layer_lists.h" 27 #include "cc/layers/layer_lists.h"
28 #include "cc/layers/layer_position_constraint.h" 28 #include "cc/layers/layer_position_constraint.h"
29 #include "cc/layers/performance_properties.h" 29 #include "cc/layers/performance_properties.h"
30 #include "cc/layers/render_surface_impl.h" 30 #include "cc/layers/render_surface_impl.h"
31 #include "cc/output/filter_operations.h" 31 #include "cc/output/filter_operations.h"
32 #include "cc/quads/shared_quad_state.h" 32 #include "cc/quads/shared_quad_state.h"
33 #include "cc/resources/resource_provider.h" 33 #include "cc/resources/resource_provider.h"
34 #include "cc/tiles/tile_priority.h" 34 #include "cc/tiles/tile_priority.h"
35 #include "skia/ext/refptr.h"
36 #include "third_party/skia/include/core/SkColor.h" 35 #include "third_party/skia/include/core/SkColor.h"
37 #include "third_party/skia/include/core/SkImageFilter.h" 36 #include "third_party/skia/include/core/SkImageFilter.h"
38 #include "third_party/skia/include/core/SkPicture.h" 37 #include "third_party/skia/include/core/SkPicture.h"
39 #include "ui/gfx/geometry/point3_f.h" 38 #include "ui/gfx/geometry/point3_f.h"
40 #include "ui/gfx/geometry/rect.h" 39 #include "ui/gfx/geometry/rect.h"
41 #include "ui/gfx/geometry/rect_f.h" 40 #include "ui/gfx/geometry/rect_f.h"
42 #include "ui/gfx/geometry/scroll_offset.h" 41 #include "ui/gfx/geometry/scroll_offset.h"
43 #include "ui/gfx/transform.h" 42 #include "ui/gfx/transform.h"
44 43
45 namespace base { 44 namespace base {
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 virtual void DidBeginTracing(); 522 virtual void DidBeginTracing();
524 523
525 // Release resources held by this layer. Called when the output surface 524 // Release resources held by this layer. Called when the output surface
526 // that rendered this layer was lost or a rendering mode switch has occured. 525 // that rendered this layer was lost or a rendering mode switch has occured.
527 virtual void ReleaseResources(); 526 virtual void ReleaseResources();
528 527
529 // Recreate resources that are required after they were released by a 528 // Recreate resources that are required after they were released by a
530 // ReleaseResources call. 529 // ReleaseResources call.
531 virtual void RecreateResources(); 530 virtual void RecreateResources();
532 531
533 virtual skia::RefPtr<SkPicture> GetPicture(); 532 virtual sk_sp<SkPicture> GetPicture();
534 533
535 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); 534 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl);
536 virtual void PushPropertiesTo(LayerImpl* layer); 535 virtual void PushPropertiesTo(LayerImpl* layer);
537 536
538 virtual void GetAllPrioritizedTilesForTracing( 537 virtual void GetAllPrioritizedTilesForTracing(
539 std::vector<PrioritizedTile>* prioritized_tiles) const; 538 std::vector<PrioritizedTile>* prioritized_tiles) const;
540 virtual void AsValueInto(base::trace_event::TracedValue* dict) const; 539 virtual void AsValueInto(base::trace_event::TracedValue* dict) const;
541 540
542 virtual size_t GPUMemoryUsageInBytes() const; 541 virtual size_t GPUMemoryUsageInBytes() const;
543 542
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 // If true, the layer or one of its descendants has a touch handler. 780 // If true, the layer or one of its descendants has a touch handler.
782 bool layer_or_descendant_has_touch_handler_; 781 bool layer_or_descendant_has_touch_handler_;
783 bool sorted_for_recursion_; 782 bool sorted_for_recursion_;
784 783
785 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 784 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
786 }; 785 };
787 786
788 } // namespace cc 787 } // namespace cc
789 788
790 #endif // CC_LAYERS_LAYER_IMPL_H_ 789 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698