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

Unified Diff: gpu/command_buffer/service/service_utils.h

Issue 2480373002: Refactor context creation parameters into a struct. (Closed)
Patch Set: address piman's comments Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/service_utils.h
diff --git a/gpu/command_buffer/service/service_utils.h b/gpu/command_buffer/service/service_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..af4e1e6f4bfd35c99940679e076249551a151caf
--- /dev/null
+++ b/gpu/command_buffer/service/service_utils.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef GPU_COMMAND_BUFFER_SERVICE_SERVICE_UTILS_H_
+#define GPU_COMMAND_BUFFER_SERVICE_SERVICE_UTILS_H_
+
+#include "gpu/gpu_export.h"
+#include "ui/gl/gl_context.h"
+
+namespace gpu {
+struct GpuPreferences;
+
+namespace gles2 {
+struct ContextCreationAttribHelper;
+
+GPU_EXPORT gl::GLContextAttribs GenerateGLContextAttribs(
+ const ContextCreationAttribHelper& attribs_helper,
+ const GpuPreferences& gpu_preferences);
+
+} // namespace gles2
+} // namespace gpu
+
+#endif // GPU_COMMAND_BUFFER_SERVICE_SERVICE_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698