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

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

Issue 313403005: Revert of Invert DSF to map from delegated frame to layer space (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/layers/delegated_renderer_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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_
6 #define CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ 6 #define CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_
7 7
8 #include "base/containers/hash_tables.h" 8 #include "base/containers/hash_tables.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void SetRenderPasses( 70 void SetRenderPasses(
71 ScopedPtrVector<RenderPass>* render_passes_in_draw_order); 71 ScopedPtrVector<RenderPass>* render_passes_in_draw_order);
72 void ClearRenderPasses(); 72 void ClearRenderPasses();
73 73
74 // Returns |true| if the delegated_render_pass_id is part of the current 74 // Returns |true| if the delegated_render_pass_id is part of the current
75 // frame and can be converted. 75 // frame and can be converted.
76 bool ConvertDelegatedRenderPassId( 76 bool ConvertDelegatedRenderPassId(
77 RenderPass::Id delegated_render_pass_id, 77 RenderPass::Id delegated_render_pass_id,
78 RenderPass::Id* output_render_pass_id) const; 78 RenderPass::Id* output_render_pass_id) const;
79 79
80 gfx::Transform DelegatedFrameToLayerSpaceTransform(
81 const gfx::Size& frame_size) const;
82
80 void AppendRenderPassQuads( 83 void AppendRenderPassQuads(
81 QuadSink* quad_sink, 84 QuadSink* quad_sink,
82 AppendQuadsData* append_quads_data, 85 AppendQuadsData* append_quads_data,
83 const RenderPass* delegated_render_pass, 86 const RenderPass* delegated_render_pass,
84 const gfx::Size& frame_size) const; 87 const gfx::Size& frame_size) const;
85 88
86 // LayerImpl overrides. 89 // LayerImpl overrides.
87 virtual const char* LayerTypeAsString() const OVERRIDE; 90 virtual const char* LayerTypeAsString() const OVERRIDE;
88 91
89 bool have_render_passes_to_push_; 92 bool have_render_passes_to_push_;
90 float inverse_device_scale_factor_;
91 ScopedPtrVector<RenderPass> render_passes_in_draw_order_; 93 ScopedPtrVector<RenderPass> render_passes_in_draw_order_;
92 base::hash_map<RenderPass::Id, int> render_passes_index_by_id_; 94 base::hash_map<RenderPass::Id, int> render_passes_index_by_id_;
93 ResourceProvider::ResourceIdArray resources_; 95 ResourceProvider::ResourceIdArray resources_;
94 96
95 gfx::Size display_size_; 97 gfx::Size display_size_;
96 int child_id_; 98 int child_id_;
97 bool own_child_id_; 99 bool own_child_id_;
98 100
99 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayerImpl); 101 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayerImpl);
100 }; 102 };
101 103
102 } // namespace cc 104 } // namespace cc
103 105
104 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ 106 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/delegated_renderer_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698