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

Side by Side Diff: services/gles2/gpu_state.cc

Issue 1348283004: Use MailboxManagerSync on android. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: use factory to create appropriate mailbox manager Created 5 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 5
6 #include "services/gles2/gpu_state.h" 6 #include "services/gles2/gpu_state.h"
7 7
8 #include "services/gles2/mailbox_manager_factory.h"
9
8 namespace gles2 { 10 namespace gles2 {
9 11
10 GpuState::GpuState() 12 GpuState::GpuState()
11 : control_thread_("gpu_command_buffer_control"), 13 : control_thread_("gpu_command_buffer_control"),
12 sync_point_manager_(gpu::SyncPointManager::Create(true)), 14 sync_point_manager_(gpu::SyncPointManager::Create(true)),
13 share_group_(new gfx::GLShareGroup), 15 share_group_(new gfx::GLShareGroup),
14 mailbox_manager_(new gpu::gles2::MailboxManagerImpl) { 16 mailbox_manager_(MailboxManagerFactory::Create()) {
15 control_thread_.Start(); 17 control_thread_.Start();
16 } 18 }
17 19
18 GpuState::~GpuState() { 20 GpuState::~GpuState() {
19 } 21 }
20 22
21 } // namespace gles2 23 } // namespace gles2
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698