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

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: final rebase and added comments 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
« no previous file with comments | « no previous file | content/common/gpu/gpu_command_buffer_stub.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 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 int32 id_request, 109 int32 id_request,
110 IPC::Message* reply_message); 110 IPC::Message* reply_message);
111 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); 111 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message);
112 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); 112 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message);
113 113
114 void OnCreateVideoDecoder( 114 void OnCreateVideoDecoder(
115 media::VideoDecodeAccelerator::Profile profile, 115 media::VideoDecodeAccelerator::Profile profile,
116 IPC::Message* reply_message); 116 IPC::Message* reply_message);
117 void OnDestroyVideoDecoder(int32 decoder_route_id); 117 void OnDestroyVideoDecoder(int32 decoder_route_id);
118 118
119 void OnSetSurfaceVisible(bool visible);
120
119 #if defined(OS_MACOSX) 121 #if defined(OS_MACOSX)
120 void OnSwapBuffers(); 122 void OnSwapBuffers();
121 123
122 // Returns the id of the current surface that is being rendered to 124 // Returns the id of the current surface that is being rendered to
123 // (or 0 if no such surface has been created). 125 // (or 0 if no such surface has been created).
124 uint64 GetSurfaceId(); 126 uint64 GetSurfaceId();
125 #endif 127 #endif
126 128
127 void OnCommandProcessed(); 129 void OnCommandProcessed();
128 void OnParseError(); 130 void OnParseError();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; 175 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_;
174 176
175 ScopedRunnableMethodFactory<GpuCommandBufferStub> task_factory_; 177 ScopedRunnableMethodFactory<GpuCommandBufferStub> task_factory_;
176 178
177 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 179 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
178 }; 180 };
179 181
180 #endif // defined(ENABLE_GPU) 182 #endif // defined(ENABLE_GPU)
181 183
182 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 184 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698