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

Side by Side Diff: gpu/ipc/service/pass_through_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
« no previous file with comments | « gpu/ipc/service/image_transport_surface.h ('k') | gpu/vulkan/vulkan_implementation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 GPU_IPC_SERVICE_PASS_THROUGH_IMAGE_TRANSPORT_SURFACE_H_ 5 #ifndef GPU_IPC_SERVICE_PASS_THROUGH_IMAGE_TRANSPORT_SURFACE_H_
6 #define GPU_IPC_SERVICE_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 <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "gpu/ipc/service/image_transport_surface.h" 15 #include "gpu/ipc/service/image_transport_surface.h"
16 #include "gpu/ipc/service/image_transport_surface_delegate.h" 16 #include "gpu/ipc/service/image_transport_surface_delegate.h"
17 #include "ui/events/latency_info.h" 17 #include "ui/events/latency_info.h"
18 #include "ui/gl/gl_surface.h" 18 #include "ui/gl/gl_surface.h"
19 19
20 namespace gpu { 20 namespace gpu {
21 class GpuChannelManager;
22 21
23 // An implementation of ImageTransportSurface that implements GLSurface through 22 // An implementation of ImageTransportSurface that implements GLSurface through
24 // GLSurfaceAdapter, thereby forwarding GLSurface methods through to it. 23 // GLSurfaceAdapter, thereby forwarding GLSurface methods through to it.
25 class PassThroughImageTransportSurface : public gl::GLSurfaceAdapter { 24 class PassThroughImageTransportSurface : public gl::GLSurfaceAdapter {
26 public: 25 public:
27 PassThroughImageTransportSurface( 26 PassThroughImageTransportSurface(
28 base::WeakPtr<ImageTransportSurfaceDelegate> delegate, 27 base::WeakPtr<ImageTransportSurfaceDelegate> delegate,
29 gl::GLSurface* surface); 28 gl::GLSurface* surface);
30 29
31 // GLSurface implementation. 30 // GLSurface implementation.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 bool did_set_swap_interval_; 68 bool did_set_swap_interval_;
70 std::vector<ui::LatencyInfo> latency_info_; 69 std::vector<ui::LatencyInfo> latency_info_;
71 base::WeakPtrFactory<PassThroughImageTransportSurface> weak_ptr_factory_; 70 base::WeakPtrFactory<PassThroughImageTransportSurface> weak_ptr_factory_;
72 71
73 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); 72 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface);
74 }; 73 };
75 74
76 } // namespace gpu 75 } // namespace gpu
77 76
78 #endif // GPU_IPC_SERVICE_PASS_THROUGH_IMAGE_TRANSPORT_SURFACE_H_ 77 #endif // GPU_IPC_SERVICE_PASS_THROUGH_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/image_transport_surface.h ('k') | gpu/vulkan/vulkan_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698