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

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

Issue 1857243005: Scan-out capable buffers (aka ui::NativePixmap) for Mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix for windows Created 4 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 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 int32_t id, 119 int32_t id,
120 mojo::ScopedSharedBufferHandle transfer_buffer, 120 mojo::ScopedSharedBufferHandle transfer_buffer,
121 uint32_t size); 121 uint32_t size);
122 bool DestroyTransferBufferOnGpuThread(int32_t id); 122 bool DestroyTransferBufferOnGpuThread(int32_t id);
123 bool CreateImageOnGpuThread(int32_t id, 123 bool CreateImageOnGpuThread(int32_t id,
124 mojo::ScopedHandle memory_handle, 124 mojo::ScopedHandle memory_handle,
125 int32_t type, 125 int32_t type,
126 mojo::SizePtr size, 126 mojo::SizePtr size,
127 int32_t format, 127 int32_t format,
128 int32_t internal_format); 128 int32_t internal_format);
129 bool CreateImageNativeOzoneOnGpuThread(int32_t id,
130 int32_t type,
131 gfx::Size size,
132 gfx::BufferFormat format,
133 uint32_t internal_format,
134 ui::NativePixmap* pixmap);
129 bool DestroyImageOnGpuThread(int32_t id); 135 bool DestroyImageOnGpuThread(int32_t id);
130 bool MakeProgressOnGpuThread(base::WaitableEvent* event, 136 bool MakeProgressOnGpuThread(base::WaitableEvent* event,
131 gpu::CommandBuffer::State* state); 137 gpu::CommandBuffer::State* state);
132 bool DeleteOnGpuThread(base::WaitableEvent* event); 138 bool DeleteOnGpuThread(base::WaitableEvent* event);
133 bool SignalQueryOnGpuThread(uint32_t query_id, const base::Closure& callback); 139 bool SignalQueryOnGpuThread(uint32_t query_id, const base::Closure& callback);
134 140
135 // Helper functions are called in the client thread. 141 // Helper functions are called in the client thread.
136 void DidLoseContextOnClientThread(uint32_t reason); 142 void DidLoseContextOnClientThread(uint32_t reason);
137 void UpdateVSyncParametersOnClientThread(int64_t timebase, int64_t interval); 143 void UpdateVSyncParametersOnClientThread(int64_t timebase, int64_t interval);
138 void OnGpuCompletedSwapBuffersOnClientThread(gfx::SwapResult result); 144 void OnGpuCompletedSwapBuffersOnClientThread(gfx::SwapResult result);
(...skipping 23 matching lines...) Expand all
162 // This weak factory will be invalidated in the client thread, so all weak 168 // This weak factory will be invalidated in the client thread, so all weak
163 // pointers have to be dereferenced in the client thread too. 169 // pointers have to be dereferenced in the client thread too.
164 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; 170 base::WeakPtrFactory<CommandBufferLocal> weak_factory_;
165 171
166 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); 172 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal);
167 }; 173 };
168 174
169 } // namespace mus 175 } // namespace mus
170 176
171 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ 177 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_
OLDNEW
« no previous file with comments | « components/mus/gles2/command_buffer_driver.cc ('k') | components/mus/gles2/command_buffer_local.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698