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

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

Issue 2532763002: gpu: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years 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"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "gpu/gpu_export.h" 14 #include "gpu/gpu_export.h"
15 #include "gpu/ipc/common/surface_handle.h" 15 #include "gpu/ipc/common/surface_handle.h"
16 #include "ui/gl/gl_surface.h" 16 #include "ui/gl/gl_surface.h"
17 17
18 namespace gpu { 18 namespace gpu {
19 class GpuChannelManager;
20 class ImageTransportSurfaceDelegate; 19 class ImageTransportSurfaceDelegate;
21 20
22 // The GPU process is agnostic as to how it displays results. On some platforms 21 // The GPU process is agnostic as to how it displays results. On some platforms
23 // it renders directly to window. On others it renders offscreen and transports 22 // it renders directly to window. On others it renders offscreen and transports
24 // the results to the browser process to display. This file provides a simple 23 // the results to the browser process to display. This file provides a simple
25 // framework for making the offscreen path seem more like the onscreen path. 24 // framework for making the offscreen path seem more like the onscreen path.
26 25
27 class ImageTransportSurface { 26 class ImageTransportSurface {
28 public: 27 public:
29 #if defined(OS_MACOSX) 28 #if defined(OS_MACOSX)
30 GPU_EXPORT static void SetAllowOSMesaForTesting(bool allow); 29 GPU_EXPORT static void SetAllowOSMesaForTesting(bool allow);
31 #endif 30 #endif
32 31
33 // Creates the appropriate native surface depending on the GL implementation. 32 // Creates the appropriate native surface depending on the GL implementation.
34 // This will be implemented separately by each platform. On failure, a null 33 // This will be implemented separately by each platform. On failure, a null
35 // scoped_refptr should be returned. 34 // scoped_refptr should be returned.
36 static scoped_refptr<gl::GLSurface> CreateNativeSurface( 35 static scoped_refptr<gl::GLSurface> CreateNativeSurface(
37 base::WeakPtr<ImageTransportSurfaceDelegate> stub, 36 base::WeakPtr<ImageTransportSurfaceDelegate> stub,
38 SurfaceHandle surface_handle, 37 SurfaceHandle surface_handle,
39 gl::GLSurface::Format format); 38 gl::GLSurface::Format format);
40 39
41 private: 40 private:
42 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurface); 41 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurface);
43 }; 42 };
44 43
45 } // namespace gpu 44 } // namespace gpu
46 45
47 #endif // GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_H_ 46 #endif // GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_command_buffer_stub.h ('k') | gpu/ipc/service/pass_through_image_transport_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698