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

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

Issue 2106103005: Revert of Pass initial size and GPU preference via context attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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) 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 <sstream> 8 #include <sstream>
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #include <GLES2/gl2ext.h> 10 #include <GLES2/gl2ext.h>
(...skipping 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after
1782 // Chromium only. 1782 // Chromium only.
1783 const int32_t kBindGeneratesResource = 0x10000; 1783 const int32_t kBindGeneratesResource = 0x10000;
1784 const int32_t kFailIfMajorPerfCaveat = 0x10001; 1784 const int32_t kFailIfMajorPerfCaveat = 0x10001;
1785 const int32_t kLoseContextWhenOutOfMemory = 0x10002; 1785 const int32_t kLoseContextWhenOutOfMemory = 0x10002;
1786 const int32_t kShouldUseNativeGMBForBackbuffer = 0x10003; 1786 const int32_t kShouldUseNativeGMBForBackbuffer = 0x10003;
1787 const int32_t kContextType = 0x10004; 1787 const int32_t kContextType = 0x10004;
1788 1788
1789 } // namespace 1789 } // namespace
1790 1790
1791 ContextCreationAttribHelper::ContextCreationAttribHelper() 1791 ContextCreationAttribHelper::ContextCreationAttribHelper()
1792 : gpu_preference(gl::PreferIntegratedGpu), 1792 : alpha_size(-1),
1793 alpha_size(-1),
1794 blue_size(-1), 1793 blue_size(-1),
1795 green_size(-1), 1794 green_size(-1),
1796 red_size(-1), 1795 red_size(-1),
1797 depth_size(-1), 1796 depth_size(-1),
1798 stencil_size(-1), 1797 stencil_size(-1),
1799 samples(-1), 1798 samples(-1),
1800 sample_buffers(-1), 1799 sample_buffers(-1),
1801 buffer_preserved(true), 1800 buffer_preserved(true),
1802 bind_generates_resource(true), 1801 bind_generates_resource(true),
1803 fail_if_major_perf_caveat(false), 1802 fail_if_major_perf_caveat(false),
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
1875 } 1874 }
1876 1875
1877 return true; 1876 return true;
1878 } 1877 }
1879 1878
1880 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" 1879 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h"
1881 1880
1882 } // namespace gles2 1881 } // namespace gles2
1883 } // namespace gpu 1882 } // namespace gpu
1884 1883
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698