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

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

Issue 1123763003: Draw the offscreen texture to reflector's surface without extra copy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved texture code to ReflectorTexture Created 5 years, 7 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
« no previous file with comments | « no previous file | content/browser/compositor/browser_compositor_output_surface.cc » ('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 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 #ifndef CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include "base/threading/non_thread_safe.h" 8 #include "base/threading/non_thread_safe.h"
9 #include "cc/output/output_surface.h" 9 #include "cc/output/output_surface.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // ui::CompositorOutputSurface::Observer implementation. 33 // ui::CompositorOutputSurface::Observer implementation.
34 void OnUpdateVSyncParameters(base::TimeTicks timebase, 34 void OnUpdateVSyncParameters(base::TimeTicks timebase,
35 base::TimeDelta interval) override; 35 base::TimeDelta interval) override;
36 36
37 void OnUpdateVSyncParametersFromGpu(base::TimeTicks tiembase, 37 void OnUpdateVSyncParametersFromGpu(base::TimeTicks tiembase,
38 base::TimeDelta interval); 38 base::TimeDelta interval);
39 39
40 void SetReflector(ReflectorImpl* reflector); 40 void SetReflector(ReflectorImpl* reflector);
41 41
42 // Called when |reflector_| was updated.
43 virtual void OnReflectorChanged();
44
45 // Returns a callback that will be called when all mirroring
46 // compositors have started composition.
47 virtual base::Closure CreateCompositionStartedCallback();
48
42 #if defined(OS_MACOSX) 49 #if defined(OS_MACOSX)
43 virtual void OnSurfaceDisplayed() = 0; 50 virtual void OnSurfaceDisplayed() = 0;
44 virtual void SetSurfaceSuspendedForRecycle(bool suspended) = 0; 51 virtual void SetSurfaceSuspendedForRecycle(bool suspended) = 0;
45 virtual bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const = 0; 52 virtual bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const = 0;
46 #endif 53 #endif
47 54
48 protected: 55 protected:
49 // Constructor used by the accelerated implementation. 56 // Constructor used by the accelerated implementation.
50 BrowserCompositorOutputSurface( 57 BrowserCompositorOutputSurface(
51 const scoped_refptr<cc::ContextProvider>& context, 58 const scoped_refptr<cc::ContextProvider>& context,
(...skipping 14 matching lines...) Expand all
66 73
67 scoped_ptr<BrowserCompositorOverlayCandidateValidator> 74 scoped_ptr<BrowserCompositorOverlayCandidateValidator>
68 overlay_candidate_validator_; 75 overlay_candidate_validator_;
69 76
70 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); 77 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface);
71 }; 78 };
72 79
73 } // namespace content 80 } // namespace content
74 81
75 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 82 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/browser_compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698