| 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 COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_H_ | 5 #ifndef COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_H_ | 
| 6 #define COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_H_ | 6 #define COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_H_ | 
| 7 | 7 | 
| 8 #include <memory> | 8 #include <memory> | 
| 9 | 9 | 
| 10 #include "cc/output/output_surface.h" | 10 #include "cc/output/output_surface.h" | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 24                             public SurfacesContextProviderDelegate { | 24                             public SurfacesContextProviderDelegate { | 
| 25  public: | 25  public: | 
| 26   explicit DirectOutputSurface( | 26   explicit DirectOutputSurface( | 
| 27       scoped_refptr<SurfacesContextProvider> context_provider, | 27       scoped_refptr<SurfacesContextProvider> context_provider, | 
| 28       cc::SyntheticBeginFrameSource* synthetic_begin_frame_source); | 28       cc::SyntheticBeginFrameSource* synthetic_begin_frame_source); | 
| 29   ~DirectOutputSurface() override; | 29   ~DirectOutputSurface() override; | 
| 30 | 30 | 
| 31   // cc::OutputSurface implementation | 31   // cc::OutputSurface implementation | 
| 32   bool BindToClient(cc::OutputSurfaceClient* client) override; | 32   bool BindToClient(cc::OutputSurfaceClient* client) override; | 
| 33   void SwapBuffers(cc::CompositorFrame* frame) override; | 33   void SwapBuffers(cc::CompositorFrame* frame) override; | 
|  | 34   uint32_t GetFramebufferCopyTextureFormat() override; | 
| 34 | 35 | 
| 35   // SurfacesContextProviderDelegate implementation | 36   // SurfacesContextProviderDelegate implementation | 
| 36   void OnVSyncParametersUpdated(const base::TimeTicks& timebase, | 37   void OnVSyncParametersUpdated(const base::TimeTicks& timebase, | 
| 37                                 const base::TimeDelta& interval) override; | 38                                 const base::TimeDelta& interval) override; | 
| 38 | 39 | 
| 39  private: | 40  private: | 
| 40   cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_; | 41   cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_; | 
| 41   base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_; | 42   base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_; | 
| 42 }; | 43 }; | 
| 43 | 44 | 
| 44 }  // namespace mus | 45 }  // namespace mus | 
| 45 | 46 | 
| 46 #endif  // COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_H_ | 47 #endif  // COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_H_ | 
| OLD | NEW | 
|---|