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 #include "content/browser/android/in_process/synchronous_compositor_factory_impl .h" | 5 #include "content/browser/android/in_process/synchronous_compositor_factory_impl .h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
9 #include "content/browser/android/in_process/synchronous_compositor_external_beg in_frame_source.h" | 9 #include "content/browser/android/in_process/synchronous_compositor_external_beg in_frame_source.h" |
10 #include "content/browser/android/in_process/synchronous_compositor_impl.h" | 10 #include "content/browser/android/in_process/synchronous_compositor_impl.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 GetDefaultAttribs(), &in_process_attribs); | 74 GetDefaultAttribs(), &in_process_attribs); |
75 in_process_attribs.lose_context_when_out_of_memory = true; | 75 in_process_attribs.lose_context_when_out_of_memory = true; |
76 | 76 |
77 scoped_ptr<gpu::GLInProcessContext> context(gpu::GLInProcessContext::Create( | 77 scoped_ptr<gpu::GLInProcessContext> context(gpu::GLInProcessContext::Create( |
78 service, | 78 service, |
79 NULL /* surface */, | 79 NULL /* surface */, |
80 is_offscreen, | 80 is_offscreen, |
81 gfx::kNullAcceleratedWidget, | 81 gfx::kNullAcceleratedWidget, |
82 gfx::Size(1, 1), | 82 gfx::Size(1, 1), |
83 NULL /* share_context */, | 83 NULL /* share_context */, |
84 false /* share_resources */, | 84 true /* share_resources */, |
boliu
2015/02/13 18:04:05
This is causing video context to fail (the call fr
vmiura
2015/02/13 19:52:34
Done.
| |
85 in_process_attribs, | 85 in_process_attribs, |
86 gpu_preference, | 86 gpu_preference, |
87 mem_limits, | 87 mem_limits, |
88 nullptr, | 88 nullptr, |
89 nullptr)); | 89 nullptr)); |
90 return context.Pass(); | 90 return context.Pass(); |
91 } | 91 } |
92 | 92 |
93 scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> WrapContext( | 93 scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> WrapContext( |
94 scoped_ptr<gpu::GLInProcessContext> context) { | 94 scoped_ptr<gpu::GLInProcessContext> context) { |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
303 DCHECK(!service_.get()); | 303 DCHECK(!service_.get()); |
304 service_ = service; | 304 service_ = service; |
305 } | 305 } |
306 | 306 |
307 void SynchronousCompositorFactoryImpl::SetRecordFullDocument( | 307 void SynchronousCompositorFactoryImpl::SetRecordFullDocument( |
308 bool record_full_document) { | 308 bool record_full_document) { |
309 record_full_layer_ = record_full_document; | 309 record_full_layer_ = record_full_document; |
310 } | 310 } |
311 | 311 |
312 } // namespace content | 312 } // namespace content |
OLD | NEW |