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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h

Issue 2764833003: Make gl_clear_broken workaround support core profile and use it under AMD Linux Catalyst driver (Closed)
Patch Set: uniform location should be GLint Created 3 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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 // This file contains the GLES2DecoderPassthroughImpl class. 5 // This file contains the GLES2DecoderPassthroughImpl class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 // Returns true if the context was lost specifically by GL_ARB_robustness. 243 // Returns true if the context was lost specifically by GL_ARB_robustness.
244 bool WasContextLostByRobustnessExtension() const override; 244 bool WasContextLostByRobustnessExtension() const override;
245 245
246 // Lose this context. 246 // Lose this context.
247 void MarkContextLost(error::ContextLostReason reason) override; 247 void MarkContextLost(error::ContextLostReason reason) override;
248 248
249 Logger* GetLogger() override; 249 Logger* GetLogger() override;
250 250
251 const ContextState* GetContextState() override; 251 const ContextState* GetContextState() override;
252 scoped_refptr<ShaderTranslatorInterface> GetTranslator(GLenum type) override; 252 scoped_refptr<ShaderTranslatorInterface> GetTranslator(
253 GLenum type) const override;
253 254
254 private: 255 private:
255 void* GetScratchMemory(size_t size); 256 void* GetScratchMemory(size_t size);
256 257
257 template <typename T> 258 template <typename T>
258 T* GetTypedScratchMemory(size_t count) { 259 T* GetTypedScratchMemory(size_t count) {
259 return reinterpret_cast<T*>(GetScratchMemory(count * sizeof(T))); 260 return reinterpret_cast<T*>(GetScratchMemory(count * sizeof(T)));
260 } 261 }
261 262
262 template <typename T, typename GLGetFunction> 263 template <typename T, typename GLGetFunction>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 400
400 // Include the prototypes of all the doer functions from a separate header to 401 // Include the prototypes of all the doer functions from a separate header to
401 // keep this file clean. 402 // keep this file clean.
402 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp es.h" 403 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp es.h"
403 }; 404 };
404 405
405 } // namespace gles2 406 } // namespace gles2
406 } // namespace gpu 407 } // namespace gpu
407 408
408 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ 409 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_mock.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698