OLD | NEW |
1 // Copyright (c) 2013 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/aura/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/aura/browser_compositor_output_surface.h" | 9 #include "content/browser/compositor/browser_compositor_output_surface.h" |
10 #include "content/common/gpu/client/gl_helper.h" | 10 #include "content/common/gpu/client/gl_helper.h" |
11 #include "ui/compositor/layer.h" | 11 #include "ui/compositor/layer.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 ReflectorImpl::ReflectorImpl( | 15 ReflectorImpl::ReflectorImpl( |
16 ui::Compositor* mirrored_compositor, | 16 ui::Compositor* mirrored_compositor, |
17 ui::Layer* mirroring_layer, | 17 ui::Layer* mirroring_layer, |
18 IDMap<BrowserCompositorOutputSurface>* output_surface_map, | 18 IDMap<BrowserCompositorOutputSurface>* output_surface_map, |
19 int surface_id) | 19 int surface_id) |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 int y = size.height() - rect.y() - rect.height(); | 173 int y = size.height() - rect.y() - rect.height(); |
174 gfx::Rect new_rect(rect.x(), y, rect.width(), rect.height()); | 174 gfx::Rect new_rect(rect.x(), y, rect.width(), rect.height()); |
175 mirroring_layer_->SchedulePaint(new_rect); | 175 mirroring_layer_->SchedulePaint(new_rect); |
176 } | 176 } |
177 | 177 |
178 void ReflectorImpl::FullRedrawContentOnMainThread() { | 178 void ReflectorImpl::FullRedrawContentOnMainThread() { |
179 mirrored_compositor_->ScheduleFullRedraw(); | 179 mirrored_compositor_->ScheduleFullRedraw(); |
180 } | 180 } |
181 | 181 |
182 } // namespace content | 182 } // namespace content |
OLD | NEW |