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

Unified Diff: cc/output/gl_renderer.h

Issue 2061993003: Pass responsibility for IOSurface-texture reuse to the gpu process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp85_query_in_use
Patch Set: Rebase. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/direct_renderer.h ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.h
diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h
index 6df1fdf041075baa9143bc1691df12be4d6e6547..ba6c7d3bcc7b11117afe6808fba113b70cb2f93c 100644
--- a/cc/output/gl_renderer.h
+++ b/cc/output/gl_renderer.h
@@ -66,6 +66,9 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
void SwapBuffers(const CompositorFrameMetadata& metadata) override;
void SwapBuffersComplete() override;
+ void DidReceiveTextureInUseResponses(
+ const gpu::TextureInUseResponses& responses) override;
+
virtual bool IsContextLost();
protected:
@@ -271,9 +274,9 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
// Resources that should be shortly swapped by the GPU process.
std::deque<OverlayResourceLockList> swapping_overlay_resources_;
- // Resources that the GPU process has finished swapping.
- std::map<ResourceId, OverlayResourceLock>
- swapped_and_acked_overlay_resources_;
+ // Resources that the GPU process has finished swapping. The key is the
+ // texture id of the resource.
+ std::map<unsigned, OverlayResourceLock> swapped_and_acked_overlay_resources_;
RendererCapabilitiesImpl capabilities_;
« no previous file with comments | « cc/output/direct_renderer.h ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698