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

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

Issue 636003002: Clean up GPU back-pressure with remote CALayers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: O(1) more compile issue Created 6 years, 2 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_FBO_MAC_H_ 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_
6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_
7 7
8 #include "base/mac/scoped_cftyperef.h" 8 #include "base/mac/scoped_cftyperef.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/common/gpu/gpu_command_buffer_stub.h" 10 #include "content/common/gpu/gpu_command_buffer_stub.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual void SwapBuffers(const gfx::Size& size, float scale_factor) = 0; 46 virtual void SwapBuffers(const gfx::Size& size, float scale_factor) = 0;
47 47
48 // Indicate that the backbuffer will be written to. 48 // Indicate that the backbuffer will be written to.
49 virtual void WillWriteToBackbuffer() = 0; 49 virtual void WillWriteToBackbuffer() = 0;
50 50
51 // Indicate that the backbuffer has been discarded and should not be seen 51 // Indicate that the backbuffer has been discarded and should not be seen
52 // again. 52 // again.
53 virtual void DiscardBackbuffer() = 0; 53 virtual void DiscardBackbuffer() = 0;
54 54
55 // Called once for every SwapBuffers call when the IPC for the present has 55 // Called once for every SwapBuffers call when the IPC for the present has
56 // been processed by the browser. 56 // been processed by the browser. |disable_throttling| is set if the
57 virtual void SwapBuffersAckedByBrowser() = 0; 57 // browser suspects that GPU back-pressure should be disabled.
58 virtual void SwapBuffersAckedByBrowser(bool disable_throttling) = 0;
58 }; 59 };
59 60
60 ImageTransportSurfaceFBO(GpuChannelManager* manager, 61 ImageTransportSurfaceFBO(GpuChannelManager* manager,
61 GpuCommandBufferStub* stub, 62 GpuCommandBufferStub* stub,
62 gfx::PluginWindowHandle handle); 63 gfx::PluginWindowHandle handle);
63 64
64 // GLSurface implementation 65 // GLSurface implementation
65 virtual bool Initialize() override; 66 virtual bool Initialize() override;
66 virtual void Destroy() override; 67 virtual void Destroy() override;
67 virtual bool DeferDraws() override; 68 virtual bool DeferDraws() override;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 std::vector<ui::LatencyInfo> latency_info_; 128 std::vector<ui::LatencyInfo> latency_info_;
128 129
129 scoped_ptr<ImageTransportHelper> helper_; 130 scoped_ptr<ImageTransportHelper> helper_;
130 131
131 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO); 132 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO);
132 }; 133 };
133 134
134 } // namespace content 135 } // namespace content
135 136
136 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_MAC_H_ 137 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_MAC_H_
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface_calayer_mac.mm ('k') | content/common/gpu/image_transport_surface_fbo_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698