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

Side by Side Diff: components/mus/gles2/command_buffer_driver.h

Issue 2021603002: gpu: Add a new extension CHROMIUM_deschedule. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/mus/gles2/command_buffer_driver.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_ 5 #ifndef COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_
6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_ 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 void DestroyDecoder(); 130 void DestroyDecoder();
131 131
132 // Callbacks: 132 // Callbacks:
133 void OnUpdateVSyncParameters(const base::TimeTicks timebase, 133 void OnUpdateVSyncParameters(const base::TimeTicks timebase,
134 const base::TimeDelta interval); 134 const base::TimeDelta interval);
135 void OnFenceSyncRelease(uint64_t release); 135 void OnFenceSyncRelease(uint64_t release);
136 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, 136 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id,
137 gpu::CommandBufferId command_buffer_id, 137 gpu::CommandBufferId command_buffer_id,
138 uint64_t release); 138 uint64_t release);
139 void OnDescheduleUntilFinished();
140 void OnRescheduleAfterFinished();
139 void OnParseError(); 141 void OnParseError();
140 void OnContextLost(uint32_t reason); 142 void OnContextLost(uint32_t reason);
141 void OnGpuCompletedSwapBuffers(gfx::SwapResult result); 143 void OnGpuCompletedSwapBuffers(gfx::SwapResult result);
142 144
143 const gpu::CommandBufferNamespace command_buffer_namespace_; 145 const gpu::CommandBufferNamespace command_buffer_namespace_;
144 const gpu::CommandBufferId command_buffer_id_; 146 const gpu::CommandBufferId command_buffer_id_;
145 gfx::AcceleratedWidget widget_; 147 gfx::AcceleratedWidget widget_;
146 Client* client_; // NOT OWNED. 148 Client* client_; // NOT OWNED.
147 std::unique_ptr<gpu::CommandBufferService> command_buffer_; 149 std::unique_ptr<gpu::CommandBufferService> command_buffer_;
148 std::unique_ptr<gpu::gles2::GLES2Decoder> decoder_; 150 std::unique_ptr<gpu::gles2::GLES2Decoder> decoder_;
(...skipping 12 matching lines...) Expand all
161 base::TimeTicks last_idle_time_; 163 base::TimeTicks last_idle_time_;
162 164
163 base::WeakPtrFactory<CommandBufferDriver> weak_factory_; 165 base::WeakPtrFactory<CommandBufferDriver> weak_factory_;
164 166
165 DISALLOW_COPY_AND_ASSIGN(CommandBufferDriver); 167 DISALLOW_COPY_AND_ASSIGN(CommandBufferDriver);
166 }; 168 };
167 169
168 } // namespace mus 170 } // namespace mus
169 171
170 #endif // COMPONENTS_GLES2_COMMAND_BUFFER_DRIVER_H_ 172 #endif // COMPONENTS_GLES2_COMMAND_BUFFER_DRIVER_H_
OLDNEW
« no previous file with comments | « no previous file | components/mus/gles2/command_buffer_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698