| OLD | NEW |
| 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_OUTPUT_OVERLAY_PROCESSOR_H_ | 5 #ifndef CC_OUTPUT_OVERLAY_PROCESSOR_H_ |
| 6 #define CC_OUTPUT_OVERLAY_PROCESSOR_H_ | 6 #define CC_OUTPUT_OVERLAY_PROCESSOR_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/containers/flat_map.h" | 10 #include "base/containers/flat_map.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 ResourceProvider* resource_provider, | 76 ResourceProvider* resource_provider, |
| 77 RenderPass* render_pass, | 77 RenderPass* render_pass, |
| 78 const base::flat_map<int, FilterOperations*>& render_pass_filters, | 78 const base::flat_map<int, FilterOperations*>& render_pass_filters, |
| 79 const base::flat_map<int, FilterOperations*>& | 79 const base::flat_map<int, FilterOperations*>& |
| 80 render_pass_background_filters, | 80 render_pass_background_filters, |
| 81 OverlayCandidateList* overlay_candidates, | 81 OverlayCandidateList* overlay_candidates, |
| 82 DCLayerOverlayList* dc_layer_overlays, | 82 DCLayerOverlayList* dc_layer_overlays, |
| 83 gfx::Rect* damage_rect); | 83 gfx::Rect* damage_rect); |
| 84 // Update |damage_rect| by removing damage casued by |candidates|. | 84 // Update |damage_rect| by removing damage casued by |candidates|. |
| 85 void UpdateDamageRect(OverlayCandidateList* candidates, | 85 void UpdateDamageRect(OverlayCandidateList* candidates, |
| 86 const gfx::Rect& previous_frame_underlay_rect, |
| 86 gfx::Rect* damage_rect); | 87 gfx::Rect* damage_rect); |
| 87 | 88 |
| 88 DCLayerOverlayProcessor dc_processor_; | 89 DCLayerOverlayProcessor dc_processor_; |
| 89 | 90 |
| 90 DISALLOW_COPY_AND_ASSIGN(OverlayProcessor); | 91 DISALLOW_COPY_AND_ASSIGN(OverlayProcessor); |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 } // namespace cc | 94 } // namespace cc |
| 94 | 95 |
| 95 #endif // CC_OUTPUT_OVERLAY_PROCESSOR_H_ | 96 #endif // CC_OUTPUT_OVERLAY_PROCESSOR_H_ |
| OLD | NEW |