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

Side by Side Diff: gpu/gles2_conform_support/egl/context.h

Issue 2727573003: gpu: Add sync token dependencies to flush metadata. (Closed)
Patch Set: jbauman's review Created 3 years, 9 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_GLES2_CONFORM_TEST_CONTEXT_H_ 5 #ifndef GPU_GLES2_CONFORM_TEST_CONTEXT_H_
6 #define GPU_GLES2_CONFORM_TEST_CONTEXT_H_ 6 #define GPU_GLES2_CONFORM_TEST_CONTEXT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 gpu::CommandBufferNamespace GetNamespaceID() const override; 69 gpu::CommandBufferNamespace GetNamespaceID() const override;
70 gpu::CommandBufferId GetCommandBufferID() const override; 70 gpu::CommandBufferId GetCommandBufferID() const override;
71 int32_t GetExtraCommandBufferData() const override; 71 int32_t GetExtraCommandBufferData() const override;
72 uint64_t GenerateFenceSyncRelease() override; 72 uint64_t GenerateFenceSyncRelease() override;
73 bool IsFenceSyncRelease(uint64_t release) override; 73 bool IsFenceSyncRelease(uint64_t release) override;
74 bool IsFenceSyncFlushed(uint64_t release) override; 74 bool IsFenceSyncFlushed(uint64_t release) override;
75 bool IsFenceSyncFlushReceived(uint64_t release) override; 75 bool IsFenceSyncFlushReceived(uint64_t release) override;
76 bool IsFenceSyncReleased(uint64_t release) override; 76 bool IsFenceSyncReleased(uint64_t release) override;
77 void SignalSyncToken(const gpu::SyncToken& sync_token, 77 void SignalSyncToken(const gpu::SyncToken& sync_token,
78 const base::Closure& callback) override; 78 const base::Closure& callback) override;
79 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; 79 void WaitSyncToken(const gpu::SyncToken& sync_token) override;
80 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken& sync_token) override;
80 81
81 // Called by ThreadState to set the needed global variables when this context 82 // Called by ThreadState to set the needed global variables when this context
82 // is current. 83 // is current.
83 void ApplyCurrentContext(gl::GLSurface* current_surface); 84 void ApplyCurrentContext(gl::GLSurface* current_surface);
84 static void ApplyContextReleased(); 85 static void ApplyContextReleased();
85 86
86 private: 87 private:
87 friend class base::RefCountedThreadSafe<Context>; 88 friend class base::RefCountedThreadSafe<Context>;
88 ~Context() override; 89 ~Context() override;
89 bool CreateService(gl::GLSurface* gl_surface); 90 bool CreateService(gl::GLSurface* gl_surface);
(...skipping 20 matching lines...) Expand all
110 111
111 scoped_refptr<gl::GLContext> gl_context_; 112 scoped_refptr<gl::GLContext> gl_context_;
112 113
113 std::unique_ptr<gpu::gles2::GLES2Interface> client_gl_context_; 114 std::unique_ptr<gpu::gles2::GLES2Interface> client_gl_context_;
114 DISALLOW_COPY_AND_ASSIGN(Context); 115 DISALLOW_COPY_AND_ASSIGN(Context);
115 }; 116 };
116 117
117 } // namespace egl 118 } // namespace egl
118 119
119 #endif // GPU_GLES2_CONFORM_TEST_CONTEXT_H_ 120 #endif // GPU_GLES2_CONFORM_TEST_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698