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/observer_list.h" | 7 #include "base/observer_list.h" |
8 #include "content/browser/android/in_process/synchronous_compositor_external_beg
in_frame_source.h" | 8 #include "content/browser/android/in_process/synchronous_compositor_external_beg
in_frame_source.h" |
9 #include "content/browser/android/in_process/synchronous_compositor_impl.h" | 9 #include "content/browser/android/in_process/synchronous_compositor_impl.h" |
10 #include "content/browser/android/in_process/synchronous_compositor_output_surfa
ce.h" | 10 #include "content/browser/android/in_process/synchronous_compositor_output_surfa
ce.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 attributes, &in_process_attribs); | 46 attributes, &in_process_attribs); |
47 in_process_attribs.lose_context_when_out_of_memory = true; | 47 in_process_attribs.lose_context_when_out_of_memory = true; |
48 | 48 |
49 scoped_ptr<gpu::GLInProcessContext> context(gpu::GLInProcessContext::Create( | 49 scoped_ptr<gpu::GLInProcessContext> context(gpu::GLInProcessContext::Create( |
50 NULL /* service */, | 50 NULL /* service */, |
51 NULL /* surface */, | 51 NULL /* surface */, |
52 true /* is_offscreen */, | 52 true /* is_offscreen */, |
53 gfx::kNullAcceleratedWidget, | 53 gfx::kNullAcceleratedWidget, |
54 gfx::Size(1, 1), | 54 gfx::Size(1, 1), |
55 NULL /* share_context */, | 55 NULL /* share_context */, |
56 true, // TODO(sievers): Use attributes.shareResources. crbug/443464. | 56 attributes.shareResources, |
57 in_process_attribs, | 57 in_process_attribs, |
58 gpu_preference, | 58 gpu_preference, |
59 gpu::GLInProcessContextSharedMemoryLimits(), | 59 gpu::GLInProcessContextSharedMemoryLimits(), |
60 nullptr, | 60 nullptr, |
61 nullptr)); | 61 nullptr)); |
62 return context.Pass(); | 62 return context.Pass(); |
63 } | 63 } |
64 | 64 |
65 scoped_ptr<gpu::GLInProcessContext> CreateContext( | 65 scoped_ptr<gpu::GLInProcessContext> CreateContext( |
66 scoped_refptr<gpu::InProcessCommandBuffer::Service> service, | 66 scoped_refptr<gpu::InProcessCommandBuffer::Service> service, |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 DCHECK(!service_.get()); | 300 DCHECK(!service_.get()); |
301 service_ = service; | 301 service_ = service; |
302 } | 302 } |
303 | 303 |
304 void SynchronousCompositorFactoryImpl::SetRecordFullDocument( | 304 void SynchronousCompositorFactoryImpl::SetRecordFullDocument( |
305 bool record_full_document) { | 305 bool record_full_document) { |
306 record_full_layer_ = record_full_document; | 306 record_full_layer_ = record_full_document; |
307 } | 307 } |
308 | 308 |
309 } // namespace content | 309 } // namespace content |
OLD | NEW |