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

Side by Side Diff: gpu/ipc/service/pass_through_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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_COMMON_GPU_PASS_THROUGH_IMAGE_TRANSPORT_SURFACE_H_ 5 #ifndef GPU_IPC_SERVICE_PASS_THROUGH_IMAGE_TRANSPORT_SURFACE_H_
6 #define CONTENT_COMMON_GPU_PASS_THROUGH_IMAGE_TRANSPORT_SURFACE_H_ 6 #define GPU_IPC_SERVICE_PASS_THROUGH_IMAGE_TRANSPORT_SURFACE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "content/common/gpu/image_transport_surface.h" 15 #include "gpu/ipc/service/image_transport_surface.h"
16 #include "ui/events/latency_info.h" 16 #include "ui/events/latency_info.h"
17 #include "ui/gl/gl_surface.h" 17 #include "ui/gl/gl_surface.h"
18 18
19 namespace content { 19 namespace gpu {
20 class GpuChannelManager; 20 class GpuChannelManager;
21 class GpuCommandBufferStub; 21 class GpuCommandBufferStub;
22 22
23 // An implementation of ImageTransportSurface that implements GLSurface through 23 // An implementation of ImageTransportSurface that implements GLSurface through
24 // GLSurfaceAdapter, thereby forwarding GLSurface methods through to it. 24 // GLSurfaceAdapter, thereby forwarding GLSurface methods through to it.
25 class PassThroughImageTransportSurface : public gfx::GLSurfaceAdapter { 25 class PassThroughImageTransportSurface : public gfx::GLSurfaceAdapter {
26 public: 26 public:
27 PassThroughImageTransportSurface(GpuChannelManager* manager, 27 PassThroughImageTransportSurface(GpuChannelManager* manager,
28 GpuCommandBufferStub* stub, 28 GpuCommandBufferStub* stub,
29 gfx::GLSurface* surface); 29 gfx::GLSurface* surface);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 gfx::SwapResult result); 61 gfx::SwapResult result);
62 62
63 base::WeakPtr<GpuCommandBufferStub> stub_; 63 base::WeakPtr<GpuCommandBufferStub> stub_;
64 bool did_set_swap_interval_; 64 bool did_set_swap_interval_;
65 std::vector<ui::LatencyInfo> latency_info_; 65 std::vector<ui::LatencyInfo> latency_info_;
66 base::WeakPtrFactory<PassThroughImageTransportSurface> weak_ptr_factory_; 66 base::WeakPtrFactory<PassThroughImageTransportSurface> weak_ptr_factory_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); 68 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface);
69 }; 69 };
70 70
71 } // namespace content 71 } // namespace gpu
72 72
73 #endif // CONTENT_COMMON_GPU_PASS_THROUGH_IMAGE_TRANSPORT_SURFACE_H_ 73 #endif // GPU_IPC_SERVICE_PASS_THROUGH_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/image_transport_surface_win.cc ('k') | gpu/ipc/service/pass_through_image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698