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

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

Issue 2803913004: cc: Introduce embedded_surfaces in metadata for surface Ids in draw quads (Closed)
Patch Set: Addressed Dana's comments Created 3 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/layers/render_surface_impl.h ('k') | cc/layers/surface_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 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 #ifndef CC_LAYERS_SURFACE_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_SURFACE_LAYER_IMPL_H_
6 #define CC_LAYERS_SURFACE_LAYER_IMPL_H_ 6 #define CC_LAYERS_SURFACE_LAYER_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 void AppendQuads(RenderPass* render_pass, 43 void AppendQuads(RenderPass* render_pass,
44 AppendQuadsData* append_quads_data) override; 44 AppendQuadsData* append_quads_data) override;
45 45
46 protected: 46 protected:
47 SurfaceLayerImpl(LayerTreeImpl* tree_impl, int id); 47 SurfaceLayerImpl(LayerTreeImpl* tree_impl, int id);
48 48
49 private: 49 private:
50 SurfaceDrawQuad* CreateSurfaceDrawQuad( 50 SurfaceDrawQuad* CreateSurfaceDrawQuad(
51 RenderPass* render_pass, 51 RenderPass* render_pass,
52 SurfaceDrawQuadType surface_draw_quad_type, 52 SurfaceDrawQuadType surface_draw_quad_type,
53 const SurfaceInfo& surface_info); 53 const SurfaceInfo& surface_info,
54 std::vector<SurfaceId>* embedded_surfaces);
54 55
55 void GetDebugBorderProperties(SkColor* color, float* width) const override; 56 void GetDebugBorderProperties(SkColor* color, float* width) const override;
56 void AppendRainbowDebugBorder(RenderPass* render_pass); 57 void AppendRainbowDebugBorder(RenderPass* render_pass);
57 void AsValueInto(base::trace_event::TracedValue* dict) const override; 58 void AsValueInto(base::trace_event::TracedValue* dict) const override;
58 const char* LayerTypeAsString() const override; 59 const char* LayerTypeAsString() const override;
59 60
60 SurfaceInfo primary_surface_info_; 61 SurfaceInfo primary_surface_info_;
61 SurfaceInfo fallback_surface_info_; 62 SurfaceInfo fallback_surface_info_;
62 63
63 bool stretch_content_to_fill_bounds_ = false; 64 bool stretch_content_to_fill_bounds_ = false;
64 65
65 DISALLOW_COPY_AND_ASSIGN(SurfaceLayerImpl); 66 DISALLOW_COPY_AND_ASSIGN(SurfaceLayerImpl);
66 }; 67 };
67 68
68 } // namespace cc 69 } // namespace cc
69 70
70 #endif // CC_LAYERS_SURFACE_LAYER_IMPL_H_ 71 #endif // CC_LAYERS_SURFACE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/render_surface_impl.h ('k') | cc/layers/surface_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698