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

Unified Diff: content/browser/android/in_process/synchronous_compositor_factory_impl.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: 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/android/in_process/synchronous_compositor_factory_impl.h
diff --git a/content/browser/android/in_process/synchronous_compositor_factory_impl.h b/content/browser/android/in_process/synchronous_compositor_factory_impl.h
index 91ef7f61dc16e026256e2ffa49221ac450210eb9..31ee62bce68d5483549a3a4e5287f2b82de547cd 100644
--- a/content/browser/android/in_process/synchronous_compositor_factory_impl.h
+++ b/content/browser/android/in_process/synchronous_compositor_factory_impl.h
@@ -44,12 +44,13 @@ class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory {
InputHandlerManagerClient* GetInputHandlerManagerClient() override;
scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
int routing_id) override;
+ scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory(
+ int view_id) override;
+ bool OverrideWithFactory() override;
scoped_refptr<cc_blink::ContextProviderWebContext>
CreateOffscreenContextProvider(
const blink::WebGraphicsContext3D::Attributes& attributes,
const std::string& debug_name) override;
- scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory(
- int view_id) override;
gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl*
CreateOffscreenGraphicsContext3D(
const blink::WebGraphicsContext3D::Attributes& attributes) override;
@@ -64,6 +65,7 @@ class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory {
base::Thread* CreateInProcessGpuThread(
const InProcessChildThreadParams& params);
void SetRecordFullDocument(bool record_full_document);
+ void SetUseIpcCommandBuffer();
void CompositorInitializedHardwareDraw();
void CompositorReleasedHardwareDraw();
@@ -85,6 +87,7 @@ class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory {
scoped_refptr<VideoContextProvider> video_context_provider_;
bool record_full_layer_;
+ bool use_ipc_command_buffer_;
// |num_hardware_compositor_lock_| is updated on UI thread only but can be
// read on renderer main thread.

Powered by Google App Engine
This is Rietveld 408576698