| 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/id_map.h" | 8 #include "base/id_map.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 class WebGraphicsContext3DCommandBufferImpl; | 25 class WebGraphicsContext3DCommandBufferImpl; |
| 26 | 26 |
| 27 class CONTENT_EXPORT BrowserCompositorOutputSurface | 27 class CONTENT_EXPORT BrowserCompositorOutputSurface |
| 28 : public cc::OutputSurface, | 28 : public cc::OutputSurface, |
| 29 public base::NonThreadSafe { | 29 public base::NonThreadSafe { |
| 30 public: | 30 public: |
| 31 virtual ~BrowserCompositorOutputSurface(); | 31 virtual ~BrowserCompositorOutputSurface(); |
| 32 | 32 |
| 33 // cc::OutputSurface implementation. | 33 // cc::OutputSurface implementation. |
| 34 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE; | 34 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE; |
| 35 virtual void Reshape(gfx::Size size, float scale_factor) OVERRIDE; | 35 virtual void Reshape(const gfx::Size& size, float scale_factor) OVERRIDE; |
| 36 | 36 |
| 37 void OnUpdateVSyncParameters(base::TimeTicks timebase, | 37 void OnUpdateVSyncParameters(base::TimeTicks timebase, |
| 38 base::TimeDelta interval); | 38 base::TimeDelta interval); |
| 39 | 39 |
| 40 void SetReflector(ReflectorImpl* reflector); | 40 void SetReflector(ReflectorImpl* reflector); |
| 41 | 41 |
| 42 protected: | 42 protected: |
| 43 // Constructor used by the accelerated implementation. | 43 // Constructor used by the accelerated implementation. |
| 44 BrowserCompositorOutputSurface( | 44 BrowserCompositorOutputSurface( |
| 45 const scoped_refptr<ContextProviderCommandBuffer>& context, | 45 const scoped_refptr<ContextProviderCommandBuffer>& context, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 void Initialize(); | 67 void Initialize(); |
| 68 | 68 |
| 69 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); | 69 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace content | 72 } // namespace content |
| 73 | 73 |
| 74 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 74 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| OLD | NEW |