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

Side by Side Diff: content/common/gpu/image_transport_surface.h

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drop ref to deleted content_tests_gypi_values.content_unittests_ozone_sources Created 4 years, 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
7
8 #include <stdint.h>
9
10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
12 #include "build/build_config.h"
13 #include "content/common/content_export.h"
14 #include "gpu/ipc/common/surface_handle.h"
15 #include "ui/gl/gl_surface.h"
16
17 namespace content {
18 class GpuChannelManager;
19 class GpuCommandBufferStub;
20
21 // The GPU process is agnostic as to how it displays results. On some platforms
22 // it renders directly to window. On others it renders offscreen and transports
23 // the results to the browser process to display. This file provides a simple
24 // framework for making the offscreen path seem more like the onscreen path.
25
26 class ImageTransportSurface {
27 public:
28 #if defined(OS_MACOSX)
29 CONTENT_EXPORT static void SetAllowOSMesaForTesting(bool allow);
30 #endif
31
32 // Creates the appropriate native surface depending on the GL implementation.
33 // This will be implemented separately by each platform. On failure, a null
34 // scoped_refptr should be returned.
35 static scoped_refptr<gfx::GLSurface> CreateNativeSurface(
36 GpuChannelManager* manager,
37 GpuCommandBufferStub* stub,
38 gpu::SurfaceHandle surface_handle,
39 gfx::GLSurface::Format format);
40
41 private:
42 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurface);
43 };
44
45 } // namespace content
46
47 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_watchdog.h ('k') | content/common/gpu/image_transport_surface_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698