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

Side by Side Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc

Issue 14600002: HW draw workarounds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixups to force hw with this patch Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/android/synchronous_compositor_output_surface.cc ('k') | no next file » | 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 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" 5 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #ifndef GL_GLEXT_PROTOTYPES 8 #ifndef GL_GLEXT_PROTOTYPES
9 #define GL_GLEXT_PROTOTYPES 1 9 #define GL_GLEXT_PROTOTYPES 1
10 #endif 10 #endif
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 LOG(ERROR) << "Could not make context current."; 644 LOG(ERROR) << "Could not make context current.";
645 Destroy(); 645 Destroy();
646 return false; 646 return false;
647 } 647 }
648 648
649 ::gpu::gles2::DisallowedFeatures disallowed_features; 649 ::gpu::gles2::DisallowedFeatures disallowed_features;
650 disallowed_features.swap_buffer_complete_callback = true; 650 disallowed_features.swap_buffer_complete_callback = true;
651 disallowed_features.gpu_memory_manager = true; 651 disallowed_features.gpu_memory_manager = true;
652 if (!decoder_->Initialize(surface_, 652 if (!decoder_->Initialize(surface_,
653 context_, 653 context_,
654 true, 654 is_offscreen,
655 size, 655 size,
656 disallowed_features, 656 disallowed_features,
657 allowed_extensions, 657 allowed_extensions,
658 attribs)) { 658 attribs)) {
659 LOG(ERROR) << "Could not initialize decoder."; 659 LOG(ERROR) << "Could not initialize decoder.";
660 Destroy(); 660 Destroy();
661 return false; 661 return false;
662 } 662 }
663 } 663 }
664 664
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1984 DELEGATE_TO_GL_1(waitAsyncTexImage2DCHROMIUM, WaitAsyncTexImage2DCHROMIUM, 1984 DELEGATE_TO_GL_1(waitAsyncTexImage2DCHROMIUM, WaitAsyncTexImage2DCHROMIUM,
1985 WGC3Denum) 1985 WGC3Denum)
1986 1986
1987 void WebGraphicsContext3DInProcessCommandBufferImpl::SetGpuMemoryBufferCreator( 1987 void WebGraphicsContext3DInProcessCommandBufferImpl::SetGpuMemoryBufferCreator(
1988 GpuMemoryBufferCreator* creator) { 1988 GpuMemoryBufferCreator* creator) {
1989 g_gpu_memory_buffer_creator = creator; 1989 g_gpu_memory_buffer_creator = creator;
1990 } 1990 }
1991 1991
1992 } // namespace gpu 1992 } // namespace gpu
1993 } // namespace webkit 1993 } // namespace webkit
OLDNEW
« no previous file with comments | « content/renderer/android/synchronous_compositor_output_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698