| OLD | NEW |
| 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 25 matching lines...) Expand all Loading... |
| 36 ResourceProvider* resource_provider) OVERRIDE; | 36 ResourceProvider* resource_provider) OVERRIDE; |
| 37 virtual void AppendQuads(QuadSink* quad_sink, | 37 virtual void AppendQuads(QuadSink* quad_sink, |
| 38 AppendQuadsData* append_quads_data) OVERRIDE; | 38 AppendQuadsData* append_quads_data) OVERRIDE; |
| 39 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; | 39 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; |
| 40 | 40 |
| 41 void AppendContributingRenderPasses(RenderPassSink* render_pass_sink); | 41 void AppendContributingRenderPasses(RenderPassSink* render_pass_sink); |
| 42 | 42 |
| 43 void SetFrameData(scoped_ptr<DelegatedFrameData> frame_data, | 43 void SetFrameData(scoped_ptr<DelegatedFrameData> frame_data, |
| 44 gfx::RectF damage_in_frame); | 44 gfx::RectF damage_in_frame); |
| 45 | 45 |
| 46 void CollectUnusedResources(TransferableResourceArray* resources_for_ack); | 46 void CollectUnusedResources(ReturnedResourceArray* resources_for_ack); |
| 47 | 47 |
| 48 void SetDisplaySize(gfx::Size size); | 48 void SetDisplaySize(gfx::Size size); |
| 49 | 49 |
| 50 protected: | 50 protected: |
| 51 DelegatedRendererLayerImpl(LayerTreeImpl* tree_impl, int id); | 51 DelegatedRendererLayerImpl(LayerTreeImpl* tree_impl, int id); |
| 52 | 52 |
| 53 int ChildIdForTesting() const { return child_id_; } | 53 int ChildIdForTesting() const { return child_id_; } |
| 54 const ScopedPtrVector<RenderPass>& RenderPassesInDrawOrderForTesting() const { | 54 const ScopedPtrVector<RenderPass>& RenderPassesInDrawOrderForTesting() const { |
| 55 return render_passes_in_draw_order_; | 55 return render_passes_in_draw_order_; |
| 56 } | 56 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 gfx::Size display_size_; | 94 gfx::Size display_size_; |
| 95 int child_id_; | 95 int child_id_; |
| 96 bool own_child_id_; | 96 bool own_child_id_; |
| 97 | 97 |
| 98 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayerImpl); | 98 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayerImpl); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace cc | 101 } // namespace cc |
| 102 | 102 |
| 103 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ | 103 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ |
| OLD | NEW |