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

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

Issue 1781093002: Add CONTEXT_TYPE_OPENGLES2_PEPPER (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move kContextType to header Created 4 years, 9 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 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 const int32_t kSampleBuffers = 0x3032; // EGL_SAMPLE_BUFFERS 1399 const int32_t kSampleBuffers = 0x3032; // EGL_SAMPLE_BUFFERS
1400 const int32_t kNone = 0x3038; // EGL_NONE 1400 const int32_t kNone = 0x3038; // EGL_NONE
1401 const int32_t kSwapBehavior = 0x3093; // EGL_SWAP_BEHAVIOR 1401 const int32_t kSwapBehavior = 0x3093; // EGL_SWAP_BEHAVIOR
1402 const int32_t kBufferPreserved = 0x3094; // EGL_BUFFER_PRESERVED 1402 const int32_t kBufferPreserved = 0x3094; // EGL_BUFFER_PRESERVED
1403 const int32_t kBufferDestroyed = 0x3095; // EGL_BUFFER_DESTROYED 1403 const int32_t kBufferDestroyed = 0x3095; // EGL_BUFFER_DESTROYED
1404 1404
1405 // Chromium only. 1405 // Chromium only.
1406 const int32_t kBindGeneratesResource = 0x10000; 1406 const int32_t kBindGeneratesResource = 0x10000;
1407 const int32_t kFailIfMajorPerfCaveat = 0x10001; 1407 const int32_t kFailIfMajorPerfCaveat = 0x10001;
1408 const int32_t kLoseContextWhenOutOfMemory = 0x10002; 1408 const int32_t kLoseContextWhenOutOfMemory = 0x10002;
1409 const int32_t kContextType = 0x10003;
1410 1409
1411 } // namespace 1410 } // namespace
1412 1411
1413 ContextCreationAttribHelper::ContextCreationAttribHelper() 1412 ContextCreationAttribHelper::ContextCreationAttribHelper()
1414 : alpha_size(-1), 1413 : alpha_size(-1),
1415 blue_size(-1), 1414 blue_size(-1),
1416 green_size(-1), 1415 green_size(-1),
1417 red_size(-1), 1416 red_size(-1),
1418 depth_size(-1), 1417 depth_size(-1),
1419 stencil_size(-1), 1418 stencil_size(-1),
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 } 1538 }
1540 1539
1541 return true; 1540 return true;
1542 } 1541 }
1543 1542
1544 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" 1543 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h"
1545 1544
1546 } // namespace gles2 1545 } // namespace gles2
1547 } // namespace gpu 1546 } // namespace gpu
1548 1547
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698