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 17 matching lines...) Expand all Loading... |
28 blink::WebGraphicsContext3D::Attributes attributes; | 28 blink::WebGraphicsContext3D::Attributes attributes; |
29 attributes.antialias = false; | 29 attributes.antialias = false; |
30 attributes.depth = false; | 30 attributes.depth = false; |
31 attributes.stencil = false; | 31 attributes.stencil = false; |
32 attributes.shareResources = true; | 32 attributes.shareResources = true; |
33 attributes.noAutomaticFlushes = true; | 33 attributes.noAutomaticFlushes = true; |
34 | 34 |
35 return attributes; | 35 return attributes; |
36 } | 36 } |
37 | 37 |
| 38 using gpu_blink::WebGraphicsContext3DImpl; |
38 using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl; | 39 using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl; |
39 using webkit::gpu::WebGraphicsContext3DImpl; | |
40 | 40 |
41 scoped_ptr<gpu::GLInProcessContext> CreateOffscreenContext( | 41 scoped_ptr<gpu::GLInProcessContext> CreateOffscreenContext( |
42 const blink::WebGraphicsContext3D::Attributes& attributes) { | 42 const blink::WebGraphicsContext3D::Attributes& attributes) { |
43 const gfx::GpuPreference gpu_preference = gfx::PreferDiscreteGpu; | 43 const gfx::GpuPreference gpu_preference = gfx::PreferDiscreteGpu; |
44 | 44 |
45 gpu::gles2::ContextCreationAttribHelper in_process_attribs; | 45 gpu::gles2::ContextCreationAttribHelper in_process_attribs; |
46 WebGraphicsContext3DImpl::ConvertAttributes( | 46 WebGraphicsContext3DImpl::ConvertAttributes( |
47 attributes, &in_process_attribs); | 47 attributes, &in_process_attribs); |
48 in_process_attribs.lose_context_when_out_of_memory = true; | 48 in_process_attribs.lose_context_when_out_of_memory = true; |
49 | 49 |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 DCHECK(!service_.get()); | 302 DCHECK(!service_.get()); |
303 service_ = service; | 303 service_ = service; |
304 } | 304 } |
305 | 305 |
306 void SynchronousCompositorFactoryImpl::SetRecordFullDocument( | 306 void SynchronousCompositorFactoryImpl::SetRecordFullDocument( |
307 bool record_full_document) { | 307 bool record_full_document) { |
308 record_full_layer_ = record_full_document; | 308 record_full_layer_ = record_full_document; |
309 } | 309 } |
310 | 310 |
311 } // namespace content | 311 } // namespace content |
OLD | NEW |