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

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

Issue 2771053003: WIP: Plumbing input event latency reporting through Mus GPU.
Patch Set: NON_EXPORTED_BASE Created 3 years, 8 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
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/gles2_conform_support/egl/context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void WaitSyncTokenHint(const gpu::SyncToken& sync_token) override; 79 void WaitSyncTokenHint(const gpu::SyncToken& sync_token) override;
80 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken& sync_token) override; 80 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken& sync_token) override;
81 void AddLatencyInfo(
82 const std::vector<ui::LatencyInfo>& latency_info) override;
81 83
82 // Called by ThreadState to set the needed global variables when this context 84 // Called by ThreadState to set the needed global variables when this context
83 // is current. 85 // is current.
84 void ApplyCurrentContext(gl::GLSurface* current_surface); 86 void ApplyCurrentContext(gl::GLSurface* current_surface);
85 static void ApplyContextReleased(); 87 static void ApplyContextReleased();
86 88
87 private: 89 private:
88 friend class base::RefCountedThreadSafe<Context>; 90 friend class base::RefCountedThreadSafe<Context>;
89 ~Context() override; 91 ~Context() override;
90 bool CreateService(gl::GLSurface* gl_surface); 92 bool CreateService(gl::GLSurface* gl_surface);
(...skipping 20 matching lines...) Expand all
111 113
112 scoped_refptr<gl::GLContext> gl_context_; 114 scoped_refptr<gl::GLContext> gl_context_;
113 115
114 std::unique_ptr<gpu::gles2::GLES2Interface> client_gl_context_; 116 std::unique_ptr<gpu::gles2::GLES2Interface> client_gl_context_;
115 DISALLOW_COPY_AND_ASSIGN(Context); 117 DISALLOW_COPY_AND_ASSIGN(Context);
116 }; 118 };
117 119
118 } // namespace egl 120 } // namespace egl
119 121
120 #endif // GPU_GLES2_CONFORM_TEST_CONTEXT_H_ 122 #endif // GPU_GLES2_CONFORM_TEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/gles2_conform_support/egl/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698