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

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

Issue 54463007: Expose GLES2Interface to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 5 #ifndef WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
6 #define WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 6 #define WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 12 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
13 #include "third_party/WebKit/public/platform/WebString.h" 13 #include "third_party/WebKit/public/platform/WebString.h"
14 #include "ui/gfx/native_widget_types.h" 14 #include "ui/gfx/native_widget_types.h"
15 #include "webkit/common/gpu/webkit_gpu_export.h" 15 #include "webkit/common/gpu/webkit_gpu_export.h"
16 16
17 namespace gpu { 17 namespace gpu {
18 class ContextSupport; 18 class ContextSupport;
19 19
20 namespace gles2 { 20 namespace gles2 {
21 class GLES2Interface;
21 class GLES2Implementation; 22 class GLES2Implementation;
22 } 23 }
23 } 24 }
24 25
25 using blink::WebGLId; 26 using blink::WebGLId;
26 27
27 using blink::WGC3Dbyte; 28 using blink::WGC3Dbyte;
28 using blink::WGC3Dchar; 29 using blink::WGC3Dchar;
29 using blink::WGC3Denum; 30 using blink::WGC3Denum;
30 using blink::WGC3Dboolean; 31 using blink::WGC3Dboolean;
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 virtual void waitAsyncTexImage2DCHROMIUM(WGC3Denum target); 547 virtual void waitAsyncTexImage2DCHROMIUM(WGC3Denum target);
547 548
548 virtual void drawBuffersEXT(WGC3Dsizei n, const WGC3Denum* bufs); 549 virtual void drawBuffersEXT(WGC3Dsizei n, const WGC3Denum* bufs);
549 550
550 virtual unsigned insertSyncPoint(); 551 virtual unsigned insertSyncPoint();
551 552
552 virtual void loseContextCHROMIUM(WGC3Denum current, WGC3Denum other); 553 virtual void loseContextCHROMIUM(WGC3Denum current, WGC3Denum other);
553 554
554 virtual GrGLInterface* createGrGLInterface(); 555 virtual GrGLInterface* createGrGLInterface();
555 556
557 ::gpu::gles2::GLES2Interface* GetGLInterface();
556 ::gpu::ContextSupport* GetContextSupport(); 558 ::gpu::ContextSupport* GetContextSupport();
557 559
558 private: 560 private:
559 WebGraphicsContext3DInProcessCommandBufferImpl( 561 WebGraphicsContext3DInProcessCommandBufferImpl(
560 scoped_ptr< ::gpu::GLInProcessContext> context, 562 scoped_ptr< ::gpu::GLInProcessContext> context,
561 const blink::WebGraphicsContext3D::Attributes& attributes, 563 const blink::WebGraphicsContext3D::Attributes& attributes,
562 bool is_offscreen, 564 bool is_offscreen,
563 gfx::AcceleratedWidget window); 565 gfx::AcceleratedWidget window);
564 566
565 // SwapBuffers callback. 567 // SwapBuffers callback.
(...skipping 26 matching lines...) Expand all
592 // Errors raised by synthesizeGLError(). 594 // Errors raised by synthesizeGLError().
593 std::vector<WGC3Denum> synthetic_errors_; 595 std::vector<WGC3Denum> synthetic_errors_;
594 596
595 uint32_t flush_id_; 597 uint32_t flush_id_;
596 }; 598 };
597 599
598 } // namespace gpu 600 } // namespace gpu
599 } // namespace webkit 601 } // namespace webkit
600 602
601 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL _H_ 603 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698