Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: content/browser/compositor/reflector_impl.cc

Issue 140753005: Add the UI compositor to the Mac build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/compositor/reflector_impl.h ('k') | content/browser/compositor/resize_lock.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/compositor/reflector_impl.h ('k') | content/browser/compositor/resize_lock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698