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

Side by Side Diff: gpu/command_buffer/service/async_pixel_transfer_manager_mac.cc

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "gpu/command_buffer/service/async_pixel_transfer_manager.h" 5 #include "gpu/command_buffer/service/async_pixel_transfer_manager.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/trace_event/trace_event.h"
8 #include "gpu/command_buffer/service/async_pixel_transfer_manager_idle.h" 8 #include "gpu/command_buffer/service/async_pixel_transfer_manager_idle.h"
9 #include "gpu/command_buffer/service/async_pixel_transfer_manager_stub.h" 9 #include "gpu/command_buffer/service/async_pixel_transfer_manager_stub.h"
10 #include "ui/gl/gl_implementation.h" 10 #include "ui/gl/gl_implementation.h"
11 11
12 namespace gpu { 12 namespace gpu {
13 13
14 AsyncPixelTransferManager* AsyncPixelTransferManager::Create( 14 AsyncPixelTransferManager* AsyncPixelTransferManager::Create(
15 gfx::GLContext* context) { 15 gfx::GLContext* context) {
16 TRACE_EVENT0("gpu", "AsyncPixelTransferManager::Create"); 16 TRACE_EVENT0("gpu", "AsyncPixelTransferManager::Create");
17 switch (gfx::GetGLImplementation()) { 17 switch (gfx::GetGLImplementation()) {
18 case gfx::kGLImplementationOSMesaGL: 18 case gfx::kGLImplementationOSMesaGL:
19 case gfx::kGLImplementationDesktopGL: 19 case gfx::kGLImplementationDesktopGL:
20 case gfx::kGLImplementationAppleGL: 20 case gfx::kGLImplementationAppleGL:
21 return new AsyncPixelTransferManagerIdle; 21 return new AsyncPixelTransferManagerIdle;
22 case gfx::kGLImplementationMockGL: 22 case gfx::kGLImplementationMockGL:
23 return new AsyncPixelTransferManagerStub; 23 return new AsyncPixelTransferManagerStub;
24 default: 24 default:
25 NOTREACHED(); 25 NOTREACHED();
26 return NULL; 26 return NULL;
27 } 27 }
28 } 28 }
29 29
30 } // namespace gpu 30 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698