Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: content/browser/android/in_process/synchronous_compositor_factory_impl.h

Issue 619843002: cc: Make separate interface for BeginFrame ipc from OutputSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 20 matching lines...) Expand all
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 bool RecordFullLayer() override; 35 virtual bool RecordFullLayer() override;
36 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( 36 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(
37 int routing_id, 37 int routing_id,
38 scoped_refptr<content::FrameSwapMessageQueue> frame_swap_message_queue) 38 scoped_refptr<content::FrameSwapMessageQueue> frame_swap_message_queue)
39 override; 39 override;
40 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() override; 40 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() override;
41 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
42 int routing_id) override;
41 virtual scoped_refptr<webkit::gpu::ContextProviderWebContext> 43 virtual scoped_refptr<webkit::gpu::ContextProviderWebContext>
42 CreateOffscreenContextProvider( 44 CreateOffscreenContextProvider(
43 const blink::WebGraphicsContext3D::Attributes& attributes, 45 const blink::WebGraphicsContext3D::Attributes& attributes,
44 const std::string& debug_name) override; 46 const std::string& debug_name) override;
45 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( 47 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory(
46 int view_id) override; 48 int view_id) override;
47 virtual webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl* 49 virtual webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl*
48 CreateOffscreenGraphicsContext3D( 50 CreateOffscreenGraphicsContext3D(
49 const blink::WebGraphicsContext3D::Attributes& attributes) override; 51 const blink::WebGraphicsContext3D::Attributes& attributes) override;
50 52
(...skipping 28 matching lines...) Expand all
79 // |num_hardware_compositor_lock_| is updated on UI thread only but can be 81 // |num_hardware_compositor_lock_| is updated on UI thread only but can be
80 // read on renderer main thread. 82 // read on renderer main thread.
81 base::Lock num_hardware_compositor_lock_; 83 base::Lock num_hardware_compositor_lock_;
82 unsigned int num_hardware_compositors_; 84 unsigned int num_hardware_compositors_;
83 scoped_refptr<base::MessageLoopProxy> main_thread_proxy_; 85 scoped_refptr<base::MessageLoopProxy> main_thread_proxy_;
84 }; 86 };
85 87
86 } // namespace content 88 } // namespace content
87 89
88 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP L_H_ 90 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP L_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698