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

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

Issue 517733002: Revert of Fix assorted issues with remote CoreAnimation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean_up_accel_layers
Patch Set: Created 6 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_IMAGE_TRANSPORT_SURFACE_IOSURFACE_MAC_H_ 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_IOSURFACE_MAC_H_
6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_IOSURFACE_MAC_H_ 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_IOSURFACE_MAC_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "content/common/gpu/image_transport_surface_fbo_mac.h" 10 #include "content/common/gpu/image_transport_surface_fbo_mac.h"
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 IOSurfaceStorageProvider(ImageTransportSurfaceFBO* transport_surface); 22 IOSurfaceStorageProvider(ImageTransportSurfaceFBO* transport_surface);
23 virtual ~IOSurfaceStorageProvider(); 23 virtual ~IOSurfaceStorageProvider();
24 24
25 // ImageTransportSurfaceFBO::StorageProvider implementation: 25 // ImageTransportSurfaceFBO::StorageProvider implementation:
26 virtual gfx::Size GetRoundedSize(gfx::Size size) OVERRIDE; 26 virtual gfx::Size GetRoundedSize(gfx::Size size) OVERRIDE;
27 virtual bool AllocateColorBufferStorage( 27 virtual bool AllocateColorBufferStorage(
28 CGLContextObj context, GLuint texture, 28 CGLContextObj context, GLuint texture,
29 gfx::Size pixel_size, float scale_factor) OVERRIDE; 29 gfx::Size pixel_size, float scale_factor) OVERRIDE;
30 virtual void FreeColorBufferStorage() OVERRIDE; 30 virtual void FreeColorBufferStorage() OVERRIDE;
31 virtual void SwapBuffers(const gfx::Size& size, float scale_factor) OVERRIDE; 31 virtual uint64 GetSurfaceHandle() const OVERRIDE;
32 virtual void WillWriteToBackbuffer() OVERRIDE; 32 virtual void WillSwapBuffers() OVERRIDE;
33 virtual void DiscardBackbuffer() OVERRIDE; 33 virtual void CanFreeSwappedBuffer() OVERRIDE;
34 virtual void SwapBuffersAckedByBrowser() OVERRIDE;
35 34
36 private: 35 private:
37 ImageTransportSurfaceFBO* transport_surface_; 36 ImageTransportSurfaceFBO* transport_surface_;
38 37
39 base::ScopedCFTypeRef<IOSurfaceRef> io_surface_; 38 base::ScopedCFTypeRef<IOSurfaceRef> io_surface_;
40 39
41 // The list of IOSurfaces that have been sent to the browser process but have 40 // The list of IOSurfaces that have been sent to the browser process but have
42 // not been opened in the browser process yet. This list should never have 41 // not been opened in the browser process yet. This list should never have
43 // more than one entry. 42 // more than one entry.
44 std::list<base::ScopedCFTypeRef<IOSurfaceRef>> pending_swapped_surfaces_; 43 std::list<base::ScopedCFTypeRef<IOSurfaceRef>> pending_swapped_surfaces_;
45 44
46 // The id of |io_surface_| or 0 if that's NULL. 45 // The id of |io_surface_| or 0 if that's NULL.
47 IOSurfaceID io_surface_id_; 46 IOSurfaceID io_surface_id_;
48 47
49 DISALLOW_COPY_AND_ASSIGN(IOSurfaceStorageProvider); 48 DISALLOW_COPY_AND_ASSIGN(IOSurfaceStorageProvider);
50 }; 49 };
51 50
52 } // namespace content 51 } // namespace content
53 52
54 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_MAC_H_ 53 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_MAC_H_
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface_fbo_mac.mm ('k') | content/common/gpu/image_transport_surface_iosurface_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698