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

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: Rebase 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
« no previous file with comments | « gpu/gles2_conform_support/egl/display.cc ('k') | mojo/gles2/command_buffer_client_impl.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 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void SetGetBuffer(int32 shm_id) OVERRIDE; 56 virtual void SetGetBuffer(int32 shm_id) OVERRIDE;
57 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, 57 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size,
58 int32* id) OVERRIDE; 58 int32* id) OVERRIDE;
59 virtual void DestroyTransferBuffer(int32 id) OVERRIDE; 59 virtual void DestroyTransferBuffer(int32 id) OVERRIDE;
60 60
61 // gpu::GpuControl implementation: 61 // gpu::GpuControl implementation:
62 virtual gpu::Capabilities GetCapabilities() OVERRIDE; 62 virtual gpu::Capabilities GetCapabilities() OVERRIDE;
63 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width, 63 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width,
64 size_t height, 64 size_t height,
65 unsigned internalformat, 65 unsigned internalformat,
66 unsigned usage,
66 int32* id) OVERRIDE; 67 int32* id) OVERRIDE;
67 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; 68 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE;
68 virtual uint32 InsertSyncPoint() OVERRIDE; 69 virtual uint32 InsertSyncPoint() OVERRIDE;
69 virtual void SignalSyncPoint(uint32 sync_point, 70 virtual void SignalSyncPoint(uint32 sync_point,
70 const base::Closure& callback) OVERRIDE; 71 const base::Closure& callback) OVERRIDE;
71 virtual void SignalQuery(uint32 query, 72 virtual void SignalQuery(uint32 query,
72 const base::Closure& callback) OVERRIDE; 73 const base::Closure& callback) OVERRIDE;
73 virtual void SetSurfaceVisible(bool visible) OVERRIDE; 74 virtual void SetSurfaceVisible(bool visible) OVERRIDE;
74 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats) 75 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats)
75 OVERRIDE; 76 OVERRIDE;
(...skipping 30 matching lines...) Expand all
106 int32 last_put_offset_; 107 int32 last_put_offset_;
107 int32 next_transfer_buffer_id_; 108 int32 next_transfer_buffer_id_;
108 109
109 bool initialize_result_; 110 bool initialize_result_;
110 }; 111 };
111 112
112 } // gles2 113 } // gles2
113 } // mojo 114 } // mojo
114 115
115 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 116 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « gpu/gles2_conform_support/egl/display.cc ('k') | mojo/gles2/command_buffer_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698