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

Side by Side Diff: content/renderer/android/synchronous_compositor_factory.h

Issue 1253553002: Add switch to use ipc command buffer in Android WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 years, 5 months 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "gpu/config/gpu_info.h" 10 #include "gpu/config/gpu_info.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual bool RecordFullLayer() = 0; 50 virtual bool RecordFullLayer() = 0;
51 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( 51 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(
52 int routing_id, 52 int routing_id,
53 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue) = 0; 53 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue) = 0;
54 54
55 // The factory maintains ownership of the returned interface. 55 // The factory maintains ownership of the returned interface.
56 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0; 56 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0;
57 57
58 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( 58 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
59 int routing_id) = 0; 59 int routing_id) = 0;
60 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory(
61 int frame_id) = 0;
60 62
63 // Methods below should not be called if OverrideWithFactory is false.
64 // Instead, just fallback to default implementation, as if factory
65 // does not exist.
66 virtual bool OverrideWithFactory();
61 virtual scoped_refptr<cc_blink::ContextProviderWebContext> 67 virtual scoped_refptr<cc_blink::ContextProviderWebContext>
62 CreateOffscreenContextProvider( 68 CreateOffscreenContextProvider(
63 const blink::WebGraphicsContext3D::Attributes& attributes, 69 const blink::WebGraphicsContext3D::Attributes& attributes,
64 const std::string& debug_name) = 0; 70 const std::string& debug_name) = 0;
65 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory(
66 int frame_id) = 0;
67 virtual gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl* 71 virtual gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl*
68 CreateOffscreenGraphicsContext3D( 72 CreateOffscreenGraphicsContext3D(
69 const blink::WebGraphicsContext3D::Attributes& attributes) = 0; 73 const blink::WebGraphicsContext3D::Attributes& attributes) = 0;
70 virtual gpu::GPUInfo GetGPUInfo() const = 0; 74 virtual gpu::GPUInfo GetGPUInfo() const = 0;
71 75
72 protected: 76 protected:
73 SynchronousCompositorFactory() {} 77 SynchronousCompositorFactory() {}
74 virtual ~SynchronousCompositorFactory() {} 78 virtual ~SynchronousCompositorFactory() {}
75 }; 79 };
76 80
77 } 81 }
78 82
79 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ 83 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
OLDNEW
« no previous file with comments | « content/public/browser/android/synchronous_compositor.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698