X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcontent%2Fcommon%2Fgpu%2Fclient%2Fwebgraphicscontext3d_command_buffer_impl.h;h=25a487eac1d19345bd291c4ab8d75c5cc0604110;hb=refs%2Fchanges%2F22%2F21422%2F1;hp=2ff411b0c44831afbd0342218985f4a34c26ab8a;hpb=3cb1527a1d0111fd75188ac2c34c117944473076;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h b/src/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h index 2ff411b..25a487e 100644 --- a/src/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h +++ b/src/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h @@ -123,7 +123,10 @@ class WebGraphicsContext3DCommandBufferImpl const GURL& active_url, GpuChannelHost* host, const Attributes& attributes, +#if !defined(OS_CHROMEOS) bool bind_generates_resources, +#endif + bool lose_context_when_out_of_memory, const SharedMemoryLimits& limits, WebGraphicsContext3DCommandBufferImpl* share_context); @@ -149,6 +152,7 @@ class WebGraphicsContext3DCommandBufferImpl CreateOffscreenContext( GpuChannelHost* host, const WebGraphicsContext3D::Attributes& attributes, + bool lose_context_when_out_of_memory, const GURL& active_url, const SharedMemoryLimits& limits, WebGraphicsContext3DCommandBufferImpl* share_context); @@ -687,20 +691,21 @@ class WebGraphicsContext3DCommandBufferImpl // gpu/command_buffer/common/gles2_cmd_utils.cc and to // gpu/command_buffer/client/gl_in_process_context.cc enum Attribute { - ALPHA_SIZE = 0x3021, - BLUE_SIZE = 0x3022, - GREEN_SIZE = 0x3023, - RED_SIZE = 0x3024, - DEPTH_SIZE = 0x3025, - STENCIL_SIZE = 0x3026, - SAMPLES = 0x3031, - SAMPLE_BUFFERS = 0x3032, - HEIGHT = 0x3056, - WIDTH = 0x3057, - NONE = 0x3038, // Attrib list = terminator - SHARE_RESOURCES = 0x10000, - BIND_GENERATES_RESOURCES = 0x10001, - FAIL_IF_MAJOR_PERF_CAVEAT = 0x10002 + ALPHA_SIZE = 0x3021, + BLUE_SIZE = 0x3022, + GREEN_SIZE = 0x3023, + RED_SIZE = 0x3024, + DEPTH_SIZE = 0x3025, + STENCIL_SIZE = 0x3026, + SAMPLES = 0x3031, + SAMPLE_BUFFERS = 0x3032, + HEIGHT = 0x3056, + WIDTH = 0x3057, + NONE = 0x3038, // Attrib list = terminator + SHARE_RESOURCES = 0x10000, + BIND_GENERATES_RESOURCES = 0x10001, + FAIL_IF_MAJOR_PERF_CAVEAT = 0x10002, + LOSE_CONTEXT_WHEN_OUT_OF_MEMORY = 0x10003, }; friend class WebGraphicsContext3DErrorMessageCallback; @@ -766,7 +771,10 @@ class WebGraphicsContext3DCommandBufferImpl scoped_ptr real_gl_; scoped_ptr trace_gl_; Error last_error_; +#if !defined(OS_CHROMEOS) bool bind_generates_resources_; +#endif + bool lose_context_when_out_of_memory_; SharedMemoryLimits mem_limits_; uint32_t flush_id_;