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

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

Issue 2107783003: Pass initial size and GPU preference via context attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp fix Created 4 years, 5 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 23 matching lines...) Expand all
34 Error DoCommands(unsigned int num_commands, 34 Error DoCommands(unsigned int num_commands,
35 const void* buffer, 35 const void* buffer,
36 int num_entries, 36 int num_entries,
37 int* entries_processed) override; 37 int* entries_processed) override;
38 38
39 const char* GetCommandName(unsigned int command_id) const override; 39 const char* GetCommandName(unsigned int command_id) const override;
40 40
41 bool Initialize(const scoped_refptr<gl::GLSurface>& surface, 41 bool Initialize(const scoped_refptr<gl::GLSurface>& surface,
42 const scoped_refptr<gl::GLContext>& context, 42 const scoped_refptr<gl::GLContext>& context,
43 bool offscreen, 43 bool offscreen,
44 const gfx::Size& offscreen_size,
45 const DisallowedFeatures& disallowed_features, 44 const DisallowedFeatures& disallowed_features,
46 const ContextCreationAttribHelper& attrib_helper) override; 45 const ContextCreationAttribHelper& attrib_helper) override;
47 46
48 // Destroys the graphics context. 47 // Destroys the graphics context.
49 void Destroy(bool have_context) override; 48 void Destroy(bool have_context) override;
50 49
51 // Set the surface associated with the default FBO. 50 // Set the surface associated with the default FBO.
52 void SetSurface(const scoped_refptr<gl::GLSurface>& surface) override; 51 void SetSurface(const scoped_refptr<gl::GLSurface>& surface) override;
53 52
54 // Releases the surface associated with the GL context. 53 // Releases the surface associated with the GL context.
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 247
249 // Include the prototypes of all the doer functions from a separate header to 248 // Include the prototypes of all the doer functions from a separate header to
250 // keep this file clean. 249 // keep this file clean.
251 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp es.h" 250 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp es.h"
252 }; 251 };
253 252
254 } // namespace gles2 253 } // namespace gles2
255 } // namespace gpu 254 } // namespace gpu
256 255
257 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ 256 #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