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

Side by Side Diff: content/browser/compositor/surface_utils.cc

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 #include "content/browser/compositor/surface_utils.h" 5 #include "content/browser/compositor/surface_utils.h"
6 6
7 #include "cc/surfaces/surface_id_allocator.h" 7 #include "cc/surfaces/surface_id_allocator.h"
8 8
9 #if defined(OS_ANDROID) 9 #if defined(OS_ANDROID) && !defined(USE_AURA)
10 #include "content/browser/renderer_host/compositor_impl_android.h" 10 #include "content/browser/renderer_host/compositor_impl_android.h"
11 #else 11 #else
12 #include "content/browser/compositor/image_transport_factory.h" 12 #include "content/browser/compositor/image_transport_factory.h"
13 #include "ui/compositor/compositor.h" 13 #include "ui/compositor/compositor.h"
14 #endif 14 #endif
15 15
16 namespace content { 16 namespace content {
17 17
18 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() { 18 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() {
19 #if defined(OS_ANDROID) 19 #if defined(OS_ANDROID) && !defined(USE_AURA)
20 return CompositorImpl::CreateSurfaceIdAllocator(); 20 return CompositorImpl::CreateSurfaceIdAllocator();
21 #else 21 #else
22 ImageTransportFactory* factory = ImageTransportFactory::GetInstance(); 22 ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
23 return factory->GetContextFactory()->CreateSurfaceIdAllocator(); 23 return factory->GetContextFactory()->CreateSurfaceIdAllocator();
24 #endif 24 #endif
25 } 25 }
26 26
27 cc::SurfaceManager* GetSurfaceManager() { 27 cc::SurfaceManager* GetSurfaceManager() {
28 #if defined(OS_ANDROID) 28 #if defined(OS_ANDROID) && !defined(USE_AURA)
29 return CompositorImpl::GetSurfaceManager(); 29 return CompositorImpl::GetSurfaceManager();
30 #else 30 #else
31 ImageTransportFactory* factory = ImageTransportFactory::GetInstance(); 31 ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
32 return factory->GetSurfaceManager(); 32 return factory->GetSurfaceManager();
33 #endif 33 #endif
34 } 34 }
35 35
36 } // namespace content 36 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698