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

Side by Side Diff: content/browser/android/in_process/synchronous_compositor_factory_impl.cc

Issue 870693003: Fix in-process share group (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/in_process_command_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/in_process_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698