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

Side by Side Diff: gpu/ipc/service/image_transport_surface.h

Issue 2488413003: Mus: ImageTransportSurface should not depend on GpuChannelManager (Closed)
Patch Set: Fix windows compile issue Created 4 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_H_ 5 #ifndef GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_H_
6 #define GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_H_ 6 #define GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 16 matching lines...) Expand all
27 class ImageTransportSurface { 27 class ImageTransportSurface {
28 public: 28 public:
29 #if defined(OS_MACOSX) 29 #if defined(OS_MACOSX)
30 GPU_EXPORT static void SetAllowOSMesaForTesting(bool allow); 30 GPU_EXPORT static void SetAllowOSMesaForTesting(bool allow);
31 #endif 31 #endif
32 32
33 // Creates the appropriate native surface depending on the GL implementation. 33 // Creates the appropriate native surface depending on the GL implementation.
34 // This will be implemented separately by each platform. On failure, a null 34 // This will be implemented separately by each platform. On failure, a null
35 // scoped_refptr should be returned. 35 // scoped_refptr should be returned.
36 static scoped_refptr<gl::GLSurface> CreateNativeSurface( 36 static scoped_refptr<gl::GLSurface> CreateNativeSurface(
37 GpuChannelManager* manager,
38 base::WeakPtr<ImageTransportSurfaceDelegate> stub, 37 base::WeakPtr<ImageTransportSurfaceDelegate> stub,
39 SurfaceHandle surface_handle, 38 SurfaceHandle surface_handle,
40 gl::GLSurface::Format format); 39 gl::GLSurface::Format format);
41 40
42 private: 41 private:
43 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurface); 42 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurface);
44 }; 43 };
45 44
46 } // namespace gpu 45 } // namespace gpu
47 46
48 #endif // GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_H_ 47 #endif // GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_command_buffer_stub.cc ('k') | gpu/ipc/service/image_transport_surface_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698