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

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

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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
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_CHANNEL_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void CacheShader(const std::string& key, const std::string& shader); 157 void CacheShader(const std::string& key, const std::string& shader);
158 158
159 void AddFilter(IPC::MessageFilter* filter); 159 void AddFilter(IPC::MessageFilter* filter);
160 void RemoveFilter(IPC::MessageFilter* filter); 160 void RemoveFilter(IPC::MessageFilter* filter);
161 161
162 uint64 GetMemoryUsage(); 162 uint64 GetMemoryUsage();
163 163
164 scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer( 164 scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer(
165 const gfx::GpuMemoryBufferHandle& handle, 165 const gfx::GpuMemoryBufferHandle& handle,
166 const gfx::Size& size, 166 const gfx::Size& size,
167 gfx::GpuMemoryBuffer::Format format, 167 gfx::BufferFormat format,
168 uint32 internalformat); 168 uint32 internalformat);
169 169
170 bool allow_future_sync_points() const { return allow_future_sync_points_; } 170 bool allow_future_sync_points() const { return allow_future_sync_points_; }
171 171
172 void HandleUpdateValueState(unsigned int target, 172 void HandleUpdateValueState(unsigned int target,
173 const gpu::ValueState& state); 173 const gpu::ValueState& state);
174 174
175 // Visible for testing. 175 // Visible for testing.
176 const gpu::ValueStateMap* pending_valuebuffer_state() const { 176 const gpu::ValueStateMap* pending_valuebuffer_state() const {
177 return pending_valuebuffer_state_.get(); 177 return pending_valuebuffer_state_.get();
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // that any WeakPtrs to Controller are invalidated before its members 265 // that any WeakPtrs to Controller are invalidated before its members
266 // variable's destructors are executed, rendering them invalid. 266 // variable's destructors are executed, rendering them invalid.
267 base::WeakPtrFactory<GpuChannel> weak_factory_; 267 base::WeakPtrFactory<GpuChannel> weak_factory_;
268 268
269 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 269 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
270 }; 270 };
271 271
272 } // namespace content 272 } // namespace content
273 273
274 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 274 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698