| 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 #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 23 matching lines...) Expand all Loading... |
| 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 #if defined(OS_MACOSX) | 42 #if defined(OS_MACOSX) |
| 43 virtual void OnSurfaceDisplayed() = 0; | 43 virtual void OnSurfaceDisplayed() = 0; |
| 44 virtual void OnSurfaceRecycled() = 0; | 44 virtual void SetSurfaceSuspendedForRecycle(bool suspended) = 0; |
| 45 virtual bool ShouldNotShowFramesAfterRecycle() const = 0; | 45 virtual bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const = 0; |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 protected: | 48 protected: |
| 49 // Constructor used by the accelerated implementation. | 49 // Constructor used by the accelerated implementation. |
| 50 BrowserCompositorOutputSurface( | 50 BrowserCompositorOutputSurface( |
| 51 const scoped_refptr<cc::ContextProvider>& context, | 51 const scoped_refptr<cc::ContextProvider>& context, |
| 52 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, | 52 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, |
| 53 scoped_ptr<BrowserCompositorOverlayCandidateValidator> | 53 scoped_ptr<BrowserCompositorOverlayCandidateValidator> |
| 54 overlay_candidate_validator); | 54 overlay_candidate_validator); |
| 55 | 55 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 66 | 66 |
| 67 scoped_ptr<BrowserCompositorOverlayCandidateValidator> | 67 scoped_ptr<BrowserCompositorOverlayCandidateValidator> |
| 68 overlay_candidate_validator_; | 68 overlay_candidate_validator_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); | 70 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace content | 73 } // namespace content |
| 74 | 74 |
| 75 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 75 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| OLD | NEW |