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

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

Issue 14126014: Add signalSyncPoint to the WebGraphicsContext3D command buffer impls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 5 #ifndef WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
7 7
8 #if defined(ENABLE_GPU) 8 #if defined(ENABLE_GPU)
9 9
10 #include <vector> 10 #include <vector>
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 WGC3Dint yoffset, 530 WGC3Dint yoffset,
531 WGC3Dsizei width, 531 WGC3Dsizei width,
532 WGC3Dsizei height, 532 WGC3Dsizei height,
533 WGC3Denum format, 533 WGC3Denum format,
534 WGC3Denum type, 534 WGC3Denum type,
535 const void* pixels); 535 const void* pixels);
536 virtual void waitAsyncTexImage2DCHROMIUM(WGC3Denum target); 536 virtual void waitAsyncTexImage2DCHROMIUM(WGC3Denum target);
537 537
538 virtual void drawBuffersEXT(WGC3Dsizei n, const WGC3Denum* bufs); 538 virtual void drawBuffersEXT(WGC3Dsizei n, const WGC3Denum* bufs);
539 539
540 virtual unsigned insertSyncPoint();
541 virtual void signalSyncPoint(unsigned sync_point,
542 WebGraphicsSyncPointCallback* callback);
543
540 protected: 544 protected:
541 virtual GrGLInterface* onCreateGrGLInterface(); 545 virtual GrGLInterface* onCreateGrGLInterface();
542 546
543 private: 547 private:
544 WebGraphicsContext3DInProcessCommandBufferImpl( 548 WebGraphicsContext3DInProcessCommandBufferImpl(
545 const WebKit::WebGraphicsContext3D::Attributes& attributes, 549 const WebKit::WebGraphicsContext3D::Attributes& attributes,
546 bool is_offscreen, 550 bool is_offscreen,
547 gfx::AcceleratedWidget window); 551 gfx::AcceleratedWidget window);
548 552
549 // SwapBuffers callback. 553 // SwapBuffers callback.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 void FlipVertically(uint8* framebuffer, 589 void FlipVertically(uint8* framebuffer,
586 unsigned int width, 590 unsigned int width,
587 unsigned int height); 591 unsigned int height);
588 }; 592 };
589 593
590 } // namespace gpu 594 } // namespace gpu
591 } // namespace webkit 595 } // namespace webkit
592 596
593 #endif // defined(ENABLE_GPU) 597 #endif // defined(ENABLE_GPU)
594 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 598 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698