| 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 #include "content/browser/compositor/reflector_impl.h" | 5 #include "content/browser/compositor/reflector_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "content/browser/compositor/browser_compositor_output_surface.h" | 9 #include "content/browser/compositor/browser_compositor_output_surface.h" |
| 10 #include "content/browser/compositor/owned_mailbox.h" | 10 #include "content/browser/compositor/owned_mailbox.h" |
| 11 //#include "content/common/gpu/client/gl_helper.h" | |
| 12 #include "ui/compositor/layer.h" | 11 #include "ui/compositor/layer.h" |
| 13 | 12 |
| 14 namespace content { | 13 namespace content { |
| 15 | 14 |
| 16 struct ReflectorImpl::LayerData { | 15 struct ReflectorImpl::LayerData { |
| 17 LayerData(ui::Layer* layer) : layer(layer) {} | 16 LayerData(ui::Layer* layer) : layer(layer) {} |
| 18 | 17 |
| 19 ui::Layer* layer; | 18 ui::Layer* layer; |
| 20 bool needs_set_mailbox = false; | 19 bool needs_set_mailbox = false; |
| 21 }; | 20 }; |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 layer_data->needs_set_mailbox = false; | 193 layer_data->needs_set_mailbox = false; |
| 195 } else { | 194 } else { |
| 196 layer_data->layer->SetTextureSize(source_size); | 195 layer_data->layer->SetTextureSize(source_size); |
| 197 } | 196 } |
| 198 layer_data->layer->SetBounds(gfx::Rect(source_size)); | 197 layer_data->layer->SetBounds(gfx::Rect(source_size)); |
| 199 layer_data->layer->SetTextureFlipped(flip_texture_); | 198 layer_data->layer->SetTextureFlipped(flip_texture_); |
| 200 layer_data->layer->SchedulePaint(redraw_rect); | 199 layer_data->layer->SchedulePaint(redraw_rect); |
| 201 } | 200 } |
| 202 | 201 |
| 203 } // namespace content | 202 } // namespace content |
| OLD | NEW |