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

Side by Side Diff: gpu/command_buffer/client/gl_in_process_context.h

Issue 79123004: Implemented failIfMajorPerformanceCaveat WebGL context creation attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More comments, logging updates Created 7 years 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 | Annotate | Revision Log
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 #ifndef GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "gles2_impl_export.h" 10 #include "gles2_impl_export.h"
(...skipping 22 matching lines...) Expand all
33 GLInProcessContextAttribs(); 33 GLInProcessContextAttribs();
34 34
35 int32 alpha_size; 35 int32 alpha_size;
36 int32 blue_size; 36 int32 blue_size;
37 int32 green_size; 37 int32 green_size;
38 int32 red_size; 38 int32 red_size;
39 int32 depth_size; 39 int32 depth_size;
40 int32 stencil_size; 40 int32 stencil_size;
41 int32 samples; 41 int32 samples;
42 int32 sample_buffers; 42 int32 sample_buffers;
43 int32 fail_if_major_perf_caveat;
43 }; 44 };
44 45
45 class GLES2_IMPL_EXPORT GLInProcessContext { 46 class GLES2_IMPL_EXPORT GLInProcessContext {
46 public: 47 public:
47 virtual ~GLInProcessContext() {} 48 virtual ~GLInProcessContext() {}
48 49
49 // Create a GLInProcessContext, if |is_offscreen| is true, renders to an 50 // Create a GLInProcessContext, if |is_offscreen| is true, renders to an
50 // offscreen context. |attrib_list| must be NULL or a NONE-terminated list 51 // offscreen context. |attrib_list| must be NULL or a NONE-terminated list
51 // of attribute/value pairs. 52 // of attribute/value pairs.
52 static GLInProcessContext* CreateContext( 53 static GLInProcessContext* CreateContext(
(...skipping 22 matching lines...) Expand all
75 76
76 #if defined(OS_ANDROID) 77 #if defined(OS_ANDROID)
77 virtual scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( 78 virtual scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture(
78 uint32 stream_id) = 0; 79 uint32 stream_id) = 0;
79 #endif 80 #endif
80 }; 81 };
81 82
82 } // namespace gpu 83 } // namespace gpu
83 84
84 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ 85 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698