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

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

Issue 2616723002: Refactor GL surface format handling (Closed)
Patch Set: Fix copyright notice on new files Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_OVERLAY_MAC_H_ 5 #ifndef GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_
6 #define GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ 6 #define GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 21 matching lines...) Expand all
32 32
33 namespace gpu { 33 namespace gpu {
34 34
35 class ImageTransportSurfaceOverlayMac : public gl::GLSurface, 35 class ImageTransportSurfaceOverlayMac : public gl::GLSurface,
36 public ui::GpuSwitchingObserver { 36 public ui::GpuSwitchingObserver {
37 public: 37 public:
38 explicit ImageTransportSurfaceOverlayMac( 38 explicit ImageTransportSurfaceOverlayMac(
39 base::WeakPtr<ImageTransportSurfaceDelegate> delegate); 39 base::WeakPtr<ImageTransportSurfaceDelegate> delegate);
40 40
41 // GLSurface implementation 41 // GLSurface implementation
42 bool Initialize(gl::GLSurface::Format format) override; 42 bool Initialize(gl::GLSurfaceFormat format) override;
43 void Destroy() override; 43 void Destroy() override;
44 bool Resize(const gfx::Size& size, 44 bool Resize(const gfx::Size& size,
45 float scale_factor, 45 float scale_factor,
46 bool has_alpha) override; 46 bool has_alpha) override;
47 bool IsOffscreen() override; 47 bool IsOffscreen() override;
48 gfx::SwapResult SwapBuffers() override; 48 gfx::SwapResult SwapBuffers() override;
49 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override; 49 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override;
50 bool SupportsPostSubBuffer() override; 50 bool SupportsPostSubBuffer() override;
51 gfx::Size GetSize() override; 51 gfx::Size GetSize() override;
52 void* GetHandle() override; 52 void* GetHandle() override;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 base::ScopedTypeRef<CGLContextObj> fence_context_obj_; 98 base::ScopedTypeRef<CGLContextObj> fence_context_obj_;
99 99
100 // The renderer ID that all contexts made current to this surface should be 100 // The renderer ID that all contexts made current to this surface should be
101 // targeting. 101 // targeting.
102 GLint gl_renderer_id_; 102 GLint gl_renderer_id_;
103 }; 103 };
104 104
105 } // namespace gpu 105 } // namespace gpu
106 106
107 #endif // GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ 107 #endif // GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/image_transport_surface_mac.mm ('k') | gpu/ipc/service/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698