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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_utils.cc

Issue 2456213002: WebVR: implement SetSurfaceHandleCHROMIUM extension for gvr_device.
Patch Set: Rebase, set dependency. Created 3 years, 11 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
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.h ('k') | gpu/command_buffer/service/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 is here so other GLES2 related files can have a common set of 5 // This file is here so other GLES2 related files can have a common set of
6 // includes where appropriate. 6 // includes where appropriate.
7 7
8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 8 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
9 9
10 #include <GLES2/gl2.h> 10 #include <GLES2/gl2.h>
(...skipping 1863 matching lines...) Expand 10 before | Expand all | Expand 10 after
1874 red_size(-1), 1874 red_size(-1),
1875 depth_size(-1), 1875 depth_size(-1),
1876 stencil_size(-1), 1876 stencil_size(-1),
1877 samples(-1), 1877 samples(-1),
1878 sample_buffers(-1), 1878 sample_buffers(-1),
1879 buffer_preserved(true), 1879 buffer_preserved(true),
1880 bind_generates_resource(true), 1880 bind_generates_resource(true),
1881 fail_if_major_perf_caveat(false), 1881 fail_if_major_perf_caveat(false),
1882 lose_context_when_out_of_memory(false), 1882 lose_context_when_out_of_memory(false),
1883 should_use_native_gmb_for_backbuffer(false), 1883 should_use_native_gmb_for_backbuffer(false),
1884 own_offscreen_surface(false),
1885 low_priority(false),
1884 context_type(CONTEXT_TYPE_OPENGLES2) {} 1886 context_type(CONTEXT_TYPE_OPENGLES2) {}
1885 1887
1886 ContextCreationAttribHelper::ContextCreationAttribHelper( 1888 ContextCreationAttribHelper::ContextCreationAttribHelper(
1887 const ContextCreationAttribHelper& other) = default; 1889 const ContextCreationAttribHelper& other) = default;
1888 1890
1889 bool ContextCreationAttribHelper::Parse(const std::vector<int32_t>& attribs) { 1891 bool ContextCreationAttribHelper::Parse(const std::vector<int32_t>& attribs) {
1890 for (size_t i = 0; i < attribs.size(); i += 2) { 1892 for (size_t i = 0; i < attribs.size(); i += 2) {
1891 const int32_t attrib = attribs[i]; 1893 const int32_t attrib = attribs[i];
1892 if (i + 1 >= attribs.size()) { 1894 if (i + 1 >= attribs.size()) {
1893 if (attrib == kNone) { 1895 if (attrib == kNone) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1952 } 1954 }
1953 } 1955 }
1954 1956
1955 return true; 1957 return true;
1956 } 1958 }
1957 1959
1958 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" 1960 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h"
1959 1961
1960 } // namespace gles2 1962 } // namespace gles2
1961 } // namespace gpu 1963 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.h ('k') | gpu/command_buffer/service/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698