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

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

Issue 16325018: GPU: Factory produces APTManagers instead of APTDelegates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h"
6
7 #include "base/debug/trace_event.h"
8 #include "gpu/command_buffer/service/async_pixel_transfer_delegate_idle.h"
9 #include "gpu/command_buffer/service/async_pixel_transfer_delegate_stub.h"
10 #include "ui/gl/gl_implementation.h"
11
12 namespace gpu {
13
14 AsyncPixelTransferDelegate* AsyncPixelTransferDelegate::Create(
15 gfx::GLContext* context) {
16 TRACE_EVENT0("gpu", "AsyncPixelTransferDelegate::Create");
17 switch (gfx::GetGLImplementation()) {
18 case gfx::kGLImplementationOSMesaGL:
19 case gfx::kGLImplementationDesktopGL:
20 case gfx::kGLImplementationEGLGLES2:
21 return new AsyncPixelTransferDelegateIdle;
22 case gfx::kGLImplementationMockGL:
23 return new AsyncPixelTransferDelegateStub;
24 default:
25 NOTREACHED();
26 return NULL;
27 }
28 }
29
30 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698