| 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 18 matching lines...) Expand all Loading... |
| 29 namespace content { | 29 namespace content { |
| 30 | 30 |
| 31 class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory { | 31 class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory { |
| 32 public: | 32 public: |
| 33 SynchronousCompositorFactoryImpl(); | 33 SynchronousCompositorFactoryImpl(); |
| 34 virtual ~SynchronousCompositorFactoryImpl(); | 34 virtual ~SynchronousCompositorFactoryImpl(); |
| 35 | 35 |
| 36 // SynchronousCompositorFactory | 36 // SynchronousCompositorFactory |
| 37 virtual scoped_refptr<base::MessageLoopProxy> GetCompositorMessageLoop() | 37 virtual scoped_refptr<base::MessageLoopProxy> GetCompositorMessageLoop() |
| 38 OVERRIDE; | 38 OVERRIDE; |
| 39 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(int routing_id) | 39 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( |
| 40 int routing_id, |
| 41 scoped_refptr<content::FrameSwapMessageQueue> frame_swap_message_queue) |
| 40 OVERRIDE; | 42 OVERRIDE; |
| 41 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() OVERRIDE; | 43 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() OVERRIDE; |
| 42 virtual scoped_refptr<webkit::gpu::ContextProviderWebContext> | 44 virtual scoped_refptr<webkit::gpu::ContextProviderWebContext> |
| 43 GetSharedOffscreenContextProviderForMainThread() OVERRIDE; | 45 GetSharedOffscreenContextProviderForMainThread() OVERRIDE; |
| 44 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( | 46 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( |
| 45 int view_id) OVERRIDE; | 47 int view_id) OVERRIDE; |
| 46 virtual blink::WebGraphicsContext3D* CreateOffscreenGraphicsContext3D( | 48 virtual blink::WebGraphicsContext3D* CreateOffscreenGraphicsContext3D( |
| 47 const blink::WebGraphicsContext3D::Attributes& attributes) OVERRIDE; | 49 const blink::WebGraphicsContext3D::Attributes& attributes) OVERRIDE; |
| 48 | 50 |
| 49 | 51 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 77 | 79 |
| 78 // |num_hardware_compositor_lock_| is updated on UI thread only but can be | 80 // |num_hardware_compositor_lock_| is updated on UI thread only but can be |
| 79 // read on renderer main thread. | 81 // read on renderer main thread. |
| 80 base::Lock num_hardware_compositor_lock_; | 82 base::Lock num_hardware_compositor_lock_; |
| 81 unsigned int num_hardware_compositors_; | 83 unsigned int num_hardware_compositors_; |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 } // namespace content | 86 } // namespace content |
| 85 | 87 |
| 86 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP
L_H_ | 88 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP
L_H_ |
| OLD | NEW |