| 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_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMPL_H
_ | 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMPL_H
_ |
| 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMPL_H
_ | 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMPL_H
_ |
| 7 | 7 |
| 8 #include "base/synchronization/lock.h" | 8 #include "base/synchronization/lock.h" |
| 9 #include "content/browser/android/in_process/synchronous_input_event_filter.h" | 9 #include "content/browser/android/in_process/synchronous_input_event_filter.h" |
| 10 #include "content/renderer/android/synchronous_compositor_factory.h" | 10 #include "content/renderer/android/synchronous_compositor_factory.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 namespace content { | 25 namespace content { |
| 26 | 26 |
| 27 class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory { | 27 class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory { |
| 28 public: | 28 public: |
| 29 SynchronousCompositorFactoryImpl(); | 29 SynchronousCompositorFactoryImpl(); |
| 30 virtual ~SynchronousCompositorFactoryImpl(); | 30 virtual ~SynchronousCompositorFactoryImpl(); |
| 31 | 31 |
| 32 // SynchronousCompositorFactory | 32 // SynchronousCompositorFactory |
| 33 virtual scoped_refptr<base::MessageLoopProxy> GetCompositorMessageLoop() | 33 virtual scoped_refptr<base::MessageLoopProxy> GetCompositorMessageLoop() |
| 34 OVERRIDE; | 34 OVERRIDE; |
| 35 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(int routing_id) | 35 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( |
| 36 int routing_id, |
| 37 scoped_refptr<content::FrameSwapMessageQueue> frame_swap_message_queue) |
| 36 OVERRIDE; | 38 OVERRIDE; |
| 37 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() OVERRIDE; | 39 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() OVERRIDE; |
| 38 virtual scoped_refptr<webkit::gpu::ContextProviderWebContext> | 40 virtual scoped_refptr<webkit::gpu::ContextProviderWebContext> |
| 39 GetSharedOffscreenContextProviderForMainThread() OVERRIDE; | 41 GetSharedOffscreenContextProviderForMainThread() OVERRIDE; |
| 40 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( | 42 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( |
| 41 int view_id) OVERRIDE; | 43 int view_id) OVERRIDE; |
| 42 virtual blink::WebGraphicsContext3D* CreateOffscreenGraphicsContext3D( | 44 virtual blink::WebGraphicsContext3D* CreateOffscreenGraphicsContext3D( |
| 43 const blink::WebGraphicsContext3D::Attributes& attributes) OVERRIDE; | 45 const blink::WebGraphicsContext3D::Attributes& attributes) OVERRIDE; |
| 44 | 46 |
| 45 | 47 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 73 | 75 |
| 74 // |num_hardware_compositor_lock_| is updated on UI thread only but can be | 76 // |num_hardware_compositor_lock_| is updated on UI thread only but can be |
| 75 // read on renderer main thread. | 77 // read on renderer main thread. |
| 76 base::Lock num_hardware_compositor_lock_; | 78 base::Lock num_hardware_compositor_lock_; |
| 77 unsigned int num_hardware_compositors_; | 79 unsigned int num_hardware_compositors_; |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 } // namespace content | 82 } // namespace content |
| 81 | 83 |
| 82 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP
L_H_ | 84 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP
L_H_ |
| OLD | NEW |