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

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

Issue 1348283004: Use MailboxManagerSync on android. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add todo comment 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
« no previous file with comments | « services/gles2/mailbox_manager_factory.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4 //
5
6 #include "services/gles2/mailbox_manager_factory.h"
7
8 #include "gpu/command_buffer/service/mailbox_manager_impl.h"
9 #include "gpu/command_buffer/service/mailbox_manager_sync.h"
10
11 namespace gles2 {
12
13 gpu::gles2::MailboxManager* MailboxManagerFactory::Create() {
14 #if defined(OS_ANDROID)
15 // Use egl fences for synchronization of textures across contexts on android.
16 // TODO(cstout): see if enabling context virtualization removes the need for
17 // fences.
18 return new gpu::gles2::MailboxManagerSync;
19 #else
20 return new gpu::gles2::MailboxManagerImpl;
21 #endif
22 }
23
24 } // namespace gles2
OLDNEW
« no previous file with comments | « services/gles2/mailbox_manager_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698