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

Unified Diff: gpu/command_buffer/service/gpu_control_service.h

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/gpu_control_service.h
diff --git a/gpu/command_buffer/service/gpu_control_service.h b/gpu/command_buffer/service/gpu_control_service.h
index 74fd4d5a16a4081e349d264f8a6903251de22938..c153c893c54141d8e074ba6e9a2daae4485ee2bb 100644
--- a/gpu/command_buffer/service/gpu_control_service.h
+++ b/gpu/command_buffer/service/gpu_control_service.h
@@ -32,11 +32,11 @@ class GPU_EXPORT GpuControlService : public GpuControl {
// GpuControl implementation.
virtual gpu::Capabilities GetCapabilities() OVERRIDE;
- virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(
- size_t width,
- size_t height,
- unsigned internalformat,
- int32* id) OVERRIDE;
+ virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width,
+ size_t height,
+ unsigned internalformat,
+ unsigned usage,
+ int32* id) OVERRIDE;
virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE;
virtual uint32 InsertSyncPoint() OVERRIDE;
virtual void SignalSyncPoint(uint32 sync_point,
@@ -55,7 +55,8 @@ class GPU_EXPORT GpuControlService : public GpuControl {
gfx::GpuMemoryBufferHandle buffer,
size_t width,
size_t height,
- unsigned internalformat);
+ unsigned internalformat,
+ unsigned usage);
reveman 2014/05/01 12:06:38 Does the GPU service really need to know about usa
alexst (slow to review) 2014/05/01 13:44:51 I suppose it's not strictly necessary, I was goin
reveman 2014/05/01 13:48:46 Let's avoid it for now and we can add it later if
private:
GpuMemoryBufferManagerInterface* gpu_memory_buffer_manager_;

Powered by Google App Engine
This is Rietveld 408576698