| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 virtual blink::WebGraphicsContext3D* CreateOffscreenGraphicsContext3D( | 43 virtual blink::WebGraphicsContext3D* CreateOffscreenGraphicsContext3D( |
| 44 const blink::WebGraphicsContext3D::Attributes& attributes) OVERRIDE; | 44 const blink::WebGraphicsContext3D::Attributes& attributes) OVERRIDE; |
| 45 | 45 |
| 46 | 46 |
| 47 SynchronousInputEventFilter* synchronous_input_event_filter() { | 47 SynchronousInputEventFilter* synchronous_input_event_filter() { |
| 48 return &synchronous_input_event_filter_; | 48 return &synchronous_input_event_filter_; |
| 49 } | 49 } |
| 50 | 50 |
| 51 void SetDeferredGpuService( | 51 void SetDeferredGpuService( |
| 52 scoped_refptr<gpu::InProcessCommandBuffer::Service> service); | 52 scoped_refptr<gpu::InProcessCommandBuffer::Service> service); |
| 53 void DisableRecordFullLayer(); | 53 void SetRecordFullDocument(bool record_full_document); |
| 54 void CompositorInitializedHardwareDraw(); | 54 void CompositorInitializedHardwareDraw(); |
| 55 void CompositorReleasedHardwareDraw(); | 55 void CompositorReleasedHardwareDraw(); |
| 56 | 56 |
| 57 scoped_refptr<cc::ContextProvider> | 57 scoped_refptr<cc::ContextProvider> |
| 58 CreateOnscreenContextProviderForCompositorThread(); | 58 CreateOnscreenContextProviderForCompositorThread(); |
| 59 gpu::GLInProcessContext* GetShareContext(); | 59 gpu::GLInProcessContext* GetShareContext(); |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 bool CanCreateMainThreadContext(); | 62 bool CanCreateMainThreadContext(); |
| 63 scoped_refptr<StreamTextureFactorySynchronousImpl::ContextProvider> | 63 scoped_refptr<StreamTextureFactorySynchronousImpl::ContextProvider> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 77 | 77 |
| 78 // |num_hardware_compositor_lock_| is updated on UI thread only but can be | 78 // |num_hardware_compositor_lock_| is updated on UI thread only but can be |
| 79 // read on renderer main thread. | 79 // read on renderer main thread. |
| 80 base::Lock num_hardware_compositor_lock_; | 80 base::Lock num_hardware_compositor_lock_; |
| 81 unsigned int num_hardware_compositors_; | 81 unsigned int num_hardware_compositors_; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace content | 84 } // namespace content |
| 85 | 85 |
| 86 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP
L_H_ | 86 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP
L_H_ |
| OLD | NEW |