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

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

Issue 865673003: Revert "compositor: Fix texture flipping for SW mirroring with surfaceless" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
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/browser_compositor_output_surface.h" 5 #include "content/browser/compositor/browser_compositor_output_surface.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 "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "content/browser/compositor/reflector_impl.h" 10 #include "content/browser/compositor/reflector_impl.h"
11 #include "content/common/gpu/client/context_provider_command_buffer.h" 11 #include "content/common/gpu/client/context_provider_command_buffer.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 BrowserCompositorOutputSurface::BrowserCompositorOutputSurface( 15 BrowserCompositorOutputSurface::BrowserCompositorOutputSurface(
16 const scoped_refptr<cc::ContextProvider>& context_provider, 16 const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
17 int surface_id, 17 int surface_id,
18 IDMap<BrowserCompositorOutputSurface>* output_surface_map, 18 IDMap<BrowserCompositorOutputSurface>* output_surface_map,
19 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager) 19 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager)
20 : OutputSurface(context_provider), 20 : OutputSurface(context_provider),
21 surface_id_(surface_id), 21 surface_id_(surface_id),
22 output_surface_map_(output_surface_map), 22 output_surface_map_(output_surface_map),
23 vsync_manager_(vsync_manager) { 23 vsync_manager_(vsync_manager) {
24 Initialize(); 24 Initialize();
25 } 25 }
26 26
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 DCHECK(CalledOnValidThread()); 82 DCHECK(CalledOnValidThread());
83 DCHECK(HasClient()); 83 DCHECK(HasClient());
84 vsync_manager_->UpdateVSyncParameters(timebase, interval); 84 vsync_manager_->UpdateVSyncParameters(timebase, interval);
85 } 85 }
86 86
87 void BrowserCompositorOutputSurface::SetReflector(ReflectorImpl* reflector) { 87 void BrowserCompositorOutputSurface::SetReflector(ReflectorImpl* reflector) {
88 reflector_ = reflector; 88 reflector_ = reflector;
89 } 89 }
90 90
91 } // namespace content 91 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/browser_compositor_output_surface.h ('k') | content/browser/compositor/reflector_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698