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

Side by Side Diff: components/mus/gles2/command_buffer_local.h

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ 5 #ifndef COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_
6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 bool FlushOnGpuThread(int32_t put_offset, uint32_t order_num); 118 bool FlushOnGpuThread(int32_t put_offset, uint32_t order_num);
119 bool SetGetBufferOnGpuThread(int32_t buffer); 119 bool SetGetBufferOnGpuThread(int32_t buffer);
120 bool RegisterTransferBufferOnGpuThread( 120 bool RegisterTransferBufferOnGpuThread(
121 int32_t id, 121 int32_t id,
122 mojo::ScopedSharedBufferHandle transfer_buffer, 122 mojo::ScopedSharedBufferHandle transfer_buffer,
123 uint32_t size); 123 uint32_t size);
124 bool DestroyTransferBufferOnGpuThread(int32_t id); 124 bool DestroyTransferBufferOnGpuThread(int32_t id);
125 bool CreateImageOnGpuThread(int32_t id, 125 bool CreateImageOnGpuThread(int32_t id,
126 mojo::ScopedHandle memory_handle, 126 mojo::ScopedHandle memory_handle,
127 int32_t type, 127 int32_t type,
128 mojo::SizePtr size, 128 const gfx::Size& size,
129 int32_t format, 129 int32_t format,
130 int32_t internal_format); 130 int32_t internal_format);
131 bool CreateImageNativeOzoneOnGpuThread(int32_t id, 131 bool CreateImageNativeOzoneOnGpuThread(int32_t id,
132 int32_t type, 132 int32_t type,
133 gfx::Size size, 133 gfx::Size size,
134 gfx::BufferFormat format, 134 gfx::BufferFormat format,
135 uint32_t internal_format, 135 uint32_t internal_format,
136 ui::NativePixmap* pixmap); 136 ui::NativePixmap* pixmap);
137 bool DestroyImageOnGpuThread(int32_t id); 137 bool DestroyImageOnGpuThread(int32_t id);
138 bool MakeProgressOnGpuThread(base::WaitableEvent* event, 138 bool MakeProgressOnGpuThread(base::WaitableEvent* event,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // This weak factory will be invalidated in the client thread, so all weak 172 // This weak factory will be invalidated in the client thread, so all weak
173 // pointers have to be dereferenced in the client thread too. 173 // pointers have to be dereferenced in the client thread too.
174 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; 174 base::WeakPtrFactory<CommandBufferLocal> weak_factory_;
175 175
176 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); 176 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal);
177 }; 177 };
178 178
179 } // namespace mus 179 } // namespace mus
180 180
181 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ 181 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698