| OLD | NEW | 
|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_DC_LAYER_OVERLAY_H_ | 5 #ifndef CC_OUTPUT_DC_LAYER_OVERLAY_H_ | 
| 6 #define CC_OUTPUT_DC_LAYER_OVERLAY_H_ | 6 #define CC_OUTPUT_DC_LAYER_OVERLAY_H_ | 
| 7 | 7 | 
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" | 
| 9 #include "cc/quads/render_pass.h" | 9 #include "cc/quads/render_pass.h" | 
| 10 #include "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" | 
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 89     previous_frame_underlay_rect_ = gfx::Rect(); | 89     previous_frame_underlay_rect_ = gfx::Rect(); | 
| 90     previous_occlusion_bounding_box_ = gfx::Rect(); | 90     previous_occlusion_bounding_box_ = gfx::Rect(); | 
| 91   } | 91   } | 
| 92 | 92 | 
| 93  private: | 93  private: | 
| 94   DCLayerResult FromDrawQuad(ResourceProvider* resource_provider, | 94   DCLayerResult FromDrawQuad(ResourceProvider* resource_provider, | 
| 95                              const gfx::RectF& display_rect, | 95                              const gfx::RectF& display_rect, | 
| 96                              QuadList::ConstIterator quad_list_begin, | 96                              QuadList::ConstIterator quad_list_begin, | 
| 97                              QuadList::ConstIterator quad, | 97                              QuadList::ConstIterator quad, | 
| 98                              DCLayerOverlay* ca_layer_overlay); | 98                              DCLayerOverlay* ca_layer_overlay); | 
|  | 99   bool ProcessForOverlay(const gfx::RectF& display_rect, | 
|  | 100                          QuadList* quad_list, | 
|  | 101                          const gfx::Rect& quad_rectangle, | 
|  | 102                          const gfx::RectF& occlusion_bounding_box, | 
|  | 103                          const QuadList::Iterator& it, | 
|  | 104                          gfx::Rect* damage_rect); | 
|  | 105   bool ProcessForUnderlay(const gfx::RectF& display_rect, | 
|  | 106                           QuadList* quad_list, | 
|  | 107                           const gfx::Rect& quad_rectangle, | 
|  | 108                           const gfx::RectF& occlusion_bounding_box, | 
|  | 109                           const QuadList::Iterator& it, | 
|  | 110                           gfx::Rect* damage_rect, | 
|  | 111                           gfx::Rect* this_frame_underlay_rect, | 
|  | 112                           DCLayerOverlay* dc_layer); | 
| 99 | 113 | 
| 100   gfx::Rect previous_frame_underlay_rect_; | 114   gfx::Rect previous_frame_underlay_rect_; | 
| 101   gfx::Rect previous_occlusion_bounding_box_; | 115   gfx::Rect previous_occlusion_bounding_box_; | 
| 102   gfx::RectF previous_display_rect_; | 116   gfx::RectF previous_display_rect_; | 
| 103 }; | 117 }; | 
| 104 | 118 | 
| 105 }  // namespace cc | 119 }  // namespace cc | 
| 106 | 120 | 
| 107 #endif  // CC_OUTPUT_DC_LAYER_OVERLAY_H_ | 121 #endif  // CC_OUTPUT_DC_LAYER_OVERLAY_H_ | 
| OLD | NEW | 
|---|