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

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: Clarifying a comment 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') | ui/gfx/gl/gl_surface.h » ('J')
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 int32 id_request, 114 int32 id_request,
115 IPC::Message* reply_message); 115 IPC::Message* reply_message);
116 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); 116 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message);
117 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); 117 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message);
118 118
119 void OnCreateVideoDecoder( 119 void OnCreateVideoDecoder(
120 media::VideoDecodeAccelerator::Profile profile, 120 media::VideoDecodeAccelerator::Profile profile,
121 IPC::Message* reply_message); 121 IPC::Message* reply_message);
122 void OnDestroyVideoDecoder(int32 decoder_route_id); 122 void OnDestroyVideoDecoder(int32 decoder_route_id);
123 123
124 void OnSetSurfaceVisible(bool visible); 124 void OnSetResourceUsage(gfx::GLSurface::ResourceUsage resourceUsage);
125 125
126 void OnCommandProcessed(); 126 void OnCommandProcessed();
127 void OnParseError(); 127 void OnParseError();
128 128
129 void ReportState(); 129 void ReportState();
130 130
131 // The lifetime of objects of this class is managed by a GpuChannel. The 131 // The lifetime of objects of this class is managed by a GpuChannel. The
132 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they 132 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they
133 // are destroyed. So a raw pointer is safe. 133 // are destroyed. So a raw pointer is safe.
134 GpuChannel* channel_; 134 GpuChannel* channel_;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Zero or more video decoders owned by this stub, keyed by their 167 // Zero or more video decoders owned by this stub, keyed by their
168 // decoder_route_id. 168 // decoder_route_id.
169 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; 169 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_;
170 170
171 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 171 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
172 }; 172 };
173 173
174 #endif // defined(ENABLE_GPU) 174 #endif // defined(ENABLE_GPU)
175 175
176 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 176 #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') | ui/gfx/gl/gl_surface.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698