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

Side by Side Diff: mojo/gles2/command_buffer_client_impl.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, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 5 #ifndef MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual void SetGetBuffer(int32 shm_id) OVERRIDE; 57 virtual void SetGetBuffer(int32 shm_id) OVERRIDE;
58 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, 58 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size,
59 int32* id) OVERRIDE; 59 int32* id) OVERRIDE;
60 virtual void DestroyTransferBuffer(int32 id) OVERRIDE; 60 virtual void DestroyTransferBuffer(int32 id) OVERRIDE;
61 61
62 // gpu::GpuControl implementation: 62 // gpu::GpuControl implementation:
63 virtual gpu::Capabilities GetCapabilities() OVERRIDE; 63 virtual gpu::Capabilities GetCapabilities() OVERRIDE;
64 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width, 64 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width,
65 size_t height, 65 size_t height,
66 unsigned internalformat, 66 unsigned internalformat,
67 unsigned usage,
67 int32* id) OVERRIDE; 68 int32* id) OVERRIDE;
68 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; 69 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE;
69 virtual uint32 InsertSyncPoint() OVERRIDE; 70 virtual uint32 InsertSyncPoint() OVERRIDE;
70 virtual void SignalSyncPoint(uint32 sync_point, 71 virtual void SignalSyncPoint(uint32 sync_point,
71 const base::Closure& callback) OVERRIDE; 72 const base::Closure& callback) OVERRIDE;
72 virtual void SignalQuery(uint32 query, 73 virtual void SignalQuery(uint32 query,
73 const base::Closure& callback) OVERRIDE; 74 const base::Closure& callback) OVERRIDE;
74 virtual void SetSurfaceVisible(bool visible) OVERRIDE; 75 virtual void SetSurfaceVisible(bool visible) OVERRIDE;
75 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats) 76 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats)
76 OVERRIDE; 77 OVERRIDE;
(...skipping 30 matching lines...) Expand all
107 int32 last_put_offset_; 108 int32 last_put_offset_;
108 int32 next_transfer_buffer_id_; 109 int32 next_transfer_buffer_id_;
109 110
110 bool initialize_result_; 111 bool initialize_result_;
111 }; 112 };
112 113
113 } // gles2 114 } // gles2
114 } // mojo 115 } // mojo
115 116
116 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 117 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698