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

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

Issue 9192014: Replace WGC3D visibility extension with resource_usage extension. [Part 2 of 3] (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added image_transport_surface_win changes Created 8 years, 11 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 | 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) 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 int32 id_request, 110 int32 id_request,
111 IPC::Message* reply_message); 111 IPC::Message* reply_message);
112 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); 112 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message);
113 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); 113 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message);
114 114
115 void OnCreateVideoDecoder( 115 void OnCreateVideoDecoder(
116 media::VideoDecodeAccelerator::Profile profile, 116 media::VideoDecodeAccelerator::Profile profile,
117 IPC::Message* reply_message); 117 IPC::Message* reply_message);
118 void OnDestroyVideoDecoder(int32 decoder_route_id); 118 void OnDestroyVideoDecoder(int32 decoder_route_id);
119 119
120 void OnSetSurfaceVisible(bool visible); 120 void OnSetResourceUsage(gfx::GLSurface::ResourceUsage resourceUsage);
121 121
122 void OnCommandProcessed(); 122 void OnCommandProcessed();
123 void OnParseError(); 123 void OnParseError();
124 124
125 void ReportState(); 125 void ReportState();
126 126
127 // The lifetime of objects of this class is managed by a GpuChannel. The 127 // The lifetime of objects of this class is managed by a GpuChannel. The
128 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they 128 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they
129 // are destroyed. So a raw pointer is safe. 129 // are destroyed. So a raw pointer is safe.
130 GpuChannel* channel_; 130 GpuChannel* channel_;
(...skipping 30 matching lines...) Expand all
161 // Zero or more video decoders owned by this stub, keyed by their 161 // Zero or more video decoders owned by this stub, keyed by their
162 // decoder_route_id. 162 // decoder_route_id.
163 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; 163 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_;
164 164
165 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 165 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
166 }; 166 };
167 167
168 #endif // defined(ENABLE_GPU) 168 #endif // defined(ENABLE_GPU)
169 169
170 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 170 #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