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

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

Issue 7890046: Command to mark surface inactive, so gpu process can release resources. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated requested changes Created 9 years, 2 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) 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 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 int32 id_request, 104 int32 id_request,
105 IPC::Message* reply_message); 105 IPC::Message* reply_message);
106 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); 106 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message);
107 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); 107 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message);
108 108
109 void OnCreateVideoDecoder( 109 void OnCreateVideoDecoder(
110 media::VideoDecodeAccelerator::Profile profile, 110 media::VideoDecodeAccelerator::Profile profile,
111 IPC::Message* reply_message); 111 IPC::Message* reply_message);
112 void OnDestroyVideoDecoder(int32 decoder_route_id); 112 void OnDestroyVideoDecoder(int32 decoder_route_id);
113 113
114 void OnSetSurfaceVisible(bool visible);
115
114 #if defined(OS_MACOSX) 116 #if defined(OS_MACOSX)
115 void OnSwapBuffers(); 117 void OnSwapBuffers();
116 118
117 // Returns the id of the current surface that is being rendered to 119 // Returns the id of the current surface that is being rendered to
118 // (or 0 if no such surface has been created). 120 // (or 0 if no such surface has been created).
119 uint64 GetSurfaceId(); 121 uint64 GetSurfaceId();
120 #endif 122 #endif
121 123
122 void OnCommandProcessed(); 124 void OnCommandProcessed();
123 void OnParseError(); 125 void OnParseError();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; 169 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_;
168 170
169 ScopedRunnableMethodFactory<GpuCommandBufferStub> task_factory_; 171 ScopedRunnableMethodFactory<GpuCommandBufferStub> task_factory_;
170 172
171 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 173 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
172 }; 174 };
173 175
174 #endif // defined(ENABLE_GPU) 176 #endif // defined(ENABLE_GPU)
175 177
176 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 178 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | content/renderer/gpu/command_buffer_proxy.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698