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

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: removedusing 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
544 virtual void loseContextCHROMIUM(WGC3Denum current, WGC3Denum other);
545
540 protected: 546 protected:
541 virtual GrGLInterface* onCreateGrGLInterface(); 547 virtual GrGLInterface* onCreateGrGLInterface();
542 548
543 private: 549 private:
544 WebGraphicsContext3DInProcessCommandBufferImpl( 550 WebGraphicsContext3DInProcessCommandBufferImpl(
545 const WebKit::WebGraphicsContext3D::Attributes& attributes, 551 const WebKit::WebGraphicsContext3D::Attributes& attributes,
546 bool is_offscreen, 552 bool is_offscreen,
547 gfx::AcceleratedWidget window); 553 gfx::AcceleratedWidget window);
548 554
549 // SwapBuffers callback. 555 // SwapBuffers callback.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 void FlipVertically(uint8* framebuffer, 591 void FlipVertically(uint8* framebuffer,
586 unsigned int width, 592 unsigned int width,
587 unsigned int height); 593 unsigned int height);
588 }; 594 };
589 595
590 } // namespace gpu 596 } // namespace gpu
591 } // namespace webkit 597 } // namespace webkit
592 598
593 #endif // defined(ENABLE_GPU) 599 #endif // defined(ENABLE_GPU)
594 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 600 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698