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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 2806163004: Plumbing input event latency reporting through Mus GPU. (Closed)
Patch Set: Inline LatencyTracker in DIsplayOutputService. 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // A class to emulate GLES2 over command buffers. 5 // A class to emulate GLES2 over command buffers.
6 6
7 #include "gpu/command_buffer/client/gles2_implementation.h" 7 #include "gpu/command_buffer/client/gles2_implementation.h"
8 8
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #include <GLES2/gl2ext.h> 10 #include <GLES2/gl2ext.h>
(...skipping 6065 matching lines...) Expand 10 before | Expand all | Expand 10 after
6076 6076
6077 uint64_t GLES2Implementation::ShareGroupTracingGUID() const { 6077 uint64_t GLES2Implementation::ShareGroupTracingGUID() const {
6078 return share_group_->TracingGUID(); 6078 return share_group_->TracingGUID();
6079 } 6079 }
6080 6080
6081 void GLES2Implementation::SetErrorMessageCallback( 6081 void GLES2Implementation::SetErrorMessageCallback(
6082 const base::Callback<void(const char*, int32_t)>& callback) { 6082 const base::Callback<void(const char*, int32_t)>& callback) {
6083 error_message_callback_ = callback; 6083 error_message_callback_ = callback;
6084 } 6084 }
6085 6085
6086 void GLES2Implementation::AddLatencyInfo(
6087 const std::vector<ui::LatencyInfo>& latency_info) {
6088 gpu_control_->AddLatencyInfo(latency_info);
6089 }
6090
6086 void GLES2Implementation::SetLostContextCallback( 6091 void GLES2Implementation::SetLostContextCallback(
6087 const base::Closure& callback) { 6092 const base::Closure& callback) {
6088 lost_context_callback_ = callback; 6093 lost_context_callback_ = callback;
6089 } 6094 }
6090 6095
6091 GLuint64 GLES2Implementation::InsertFenceSyncCHROMIUM() { 6096 GLuint64 GLES2Implementation::InsertFenceSyncCHROMIUM() {
6092 const uint64_t release = gpu_control_->GenerateFenceSyncRelease(); 6097 const uint64_t release = gpu_control_->GenerateFenceSyncRelease();
6093 helper_->InsertFenceSyncCHROMIUM(release); 6098 helper_->InsertFenceSyncCHROMIUM(release);
6094 return release; 6099 return release;
6095 } 6100 }
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
7067 CheckGLError(); 7072 CheckGLError();
7068 } 7073 }
7069 7074
7070 // Include the auto-generated part of this file. We split this because it means 7075 // Include the auto-generated part of this file. We split this because it means
7071 // we can easily edit the non-auto generated parts right here in this file 7076 // we can easily edit the non-auto generated parts right here in this file
7072 // instead of having to edit some template or the code generator. 7077 // instead of having to edit some template or the code generator.
7073 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" 7078 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h"
7074 7079
7075 } // namespace gles2 7080 } // namespace gles2
7076 } // namespace gpu 7081 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.h ('k') | gpu/command_buffer/client/gpu_control.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698