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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 9699125: Chromium implementation of discardBackbuffer WebGraphicsContext3D extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming extension for now, so its not mistaken for the standard one Created 8 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 | Annotate | Revision Log
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 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); 188 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message);
189 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); 189 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message);
190 190
191 void OnCreateVideoDecoder( 191 void OnCreateVideoDecoder(
192 media::VideoDecodeAccelerator::Profile profile, 192 media::VideoDecodeAccelerator::Profile profile,
193 IPC::Message* reply_message); 193 IPC::Message* reply_message);
194 void OnDestroyVideoDecoder(int32 decoder_route_id); 194 void OnDestroyVideoDecoder(int32 decoder_route_id);
195 195
196 void OnSetSurfaceVisible(bool visible); 196 void OnSetSurfaceVisible(bool visible);
197 197
198 void OnDiscardBackbuffer();
199 void OnEnsureBackbuffer();
200
198 void OnReschedule(); 201 void OnReschedule();
199 202
200 void OnCommandProcessed(); 203 void OnCommandProcessed();
201 void OnParseError(); 204 void OnParseError();
202 205
203 void ReportState(); 206 void ReportState();
204 207
205 // The lifetime of objects of this class is managed by a GpuChannel. The 208 // The lifetime of objects of this class is managed by a GpuChannel. The
206 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they 209 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they
207 // are destroyed. So a raw pointer is safe. 210 // are destroyed. So a raw pointer is safe.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; 245 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_;
243 246
244 ObserverList<DestructionObserver> destruction_observers_; 247 ObserverList<DestructionObserver> destruction_observers_;
245 248
246 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 249 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
247 }; 250 };
248 251
249 #endif // defined(ENABLE_GPU) 252 #endif // defined(ENABLE_GPU)
250 253
251 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 254 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698