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

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

Issue 1864723003: Make lost context and error message callbacks on GpuControl go to client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: errorcallback: . 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void Flush(int32_t put_offset) override; 67 void Flush(int32_t put_offset) override;
68 void OrderingBarrier(int32_t put_offset) override; 68 void OrderingBarrier(int32_t put_offset) override;
69 void WaitForTokenInRange(int32_t start, int32_t end) override; 69 void WaitForTokenInRange(int32_t start, int32_t end) override;
70 void WaitForGetOffsetInRange(int32_t start, int32_t end) override; 70 void WaitForGetOffsetInRange(int32_t start, int32_t end) override;
71 void SetGetBuffer(int32_t buffer) override; 71 void SetGetBuffer(int32_t buffer) override;
72 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, 72 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size,
73 int32_t* id) override; 73 int32_t* id) override;
74 void DestroyTransferBuffer(int32_t id) override; 74 void DestroyTransferBuffer(int32_t id) override;
75 75
76 // gpu::GpuControl implementation: 76 // gpu::GpuControl implementation:
77 void SetGpuControlClient(gpu::GpuControlClient*) override;
77 gpu::Capabilities GetCapabilities() override; 78 gpu::Capabilities GetCapabilities() override;
78 int32_t CreateImage(ClientBuffer buffer, 79 int32_t CreateImage(ClientBuffer buffer,
79 size_t width, 80 size_t width,
80 size_t height, 81 size_t height,
81 unsigned internalformat) override; 82 unsigned internalformat) override;
82 void DestroyImage(int32_t id) override; 83 void DestroyImage(int32_t id) override;
83 int32_t CreateGpuMemoryBufferImage(size_t width, 84 int32_t CreateGpuMemoryBufferImage(size_t width,
84 size_t height, 85 size_t height,
85 unsigned internal_format, 86 unsigned internal_format,
86 unsigned usage) override; 87 unsigned usage) override;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // This weak factory will be invalidated in the client thread, so all weak 163 // This weak factory will be invalidated in the client thread, so all weak
163 // pointers have to be dereferenced in the client thread too. 164 // pointers have to be dereferenced in the client thread too.
164 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; 165 base::WeakPtrFactory<CommandBufferLocal> weak_factory_;
165 166
166 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); 167 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal);
167 }; 168 };
168 169
169 } // namespace mus 170 } // namespace mus
170 171
171 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ 172 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698