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

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

Issue 16200002: Remove unused methods in WebGraphicsContext3D: isGLES2Compliant() and getPlatformTextureId() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch to try bot. Created 7 years, 6 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
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 #if defined(ENABLE_GPU) 8 #if defined(ENABLE_GPU)
9 9
10 #include <vector> 10 #include <vector>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); 67 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl();
68 68
69 //---------------------------------------------------------------------- 69 //----------------------------------------------------------------------
70 // WebGraphicsContext3D methods 70 // WebGraphicsContext3D methods
71 virtual bool makeContextCurrent(); 71 virtual bool makeContextCurrent();
72 72
73 virtual int width(); 73 virtual int width();
74 virtual int height(); 74 virtual int height();
75 75
76 virtual bool isGLES2Compliant();
77
78 virtual bool setParentContext(WebGraphicsContext3D* parent_context); 76 virtual bool setParentContext(WebGraphicsContext3D* parent_context);
79 77
80 virtual void reshape(int width, int height); 78 virtual void reshape(int width, int height);
81 virtual void reshapeWithScaleFactor(int width, int height, float scaleFactor); 79 virtual void reshapeWithScaleFactor(int width, int height, float scaleFactor);
82 80
83 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); 81 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size);
84 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, 82 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size,
85 WebGLId framebuffer, int width, int height); 83 WebGLId framebuffer, int width, int height);
86 84
87 virtual WebGLId getPlatformTextureId();
88 virtual void prepareTexture(); 85 virtual void prepareTexture();
89 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); 86 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height);
90 87
91 virtual void activeTexture(WGC3Denum texture); 88 virtual void activeTexture(WGC3Denum texture);
92 virtual void attachShader(WebGLId program, WebGLId shader); 89 virtual void attachShader(WebGLId program, WebGLId shader);
93 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, 90 virtual void bindAttribLocation(WebGLId program, WGC3Duint index,
94 const WGC3Dchar* name); 91 const WGC3Dchar* name);
95 virtual void bindBuffer(WGC3Denum target, WebGLId buffer); 92 virtual void bindBuffer(WGC3Denum target, WebGLId buffer);
96 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer); 93 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer);
97 virtual void bindRenderbuffer(WGC3Denum target, WebGLId renderbuffer); 94 virtual void bindRenderbuffer(WGC3Denum target, WebGLId renderbuffer);
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 void FlipVertically(uint8* framebuffer, 598 void FlipVertically(uint8* framebuffer,
602 unsigned int width, 599 unsigned int width,
603 unsigned int height); 600 unsigned int height);
604 }; 601 };
605 602
606 } // namespace gpu 603 } // namespace gpu
607 } // namespace webkit 604 } // namespace webkit
608 605
609 #endif // defined(ENABLE_GPU) 606 #endif // defined(ENABLE_GPU)
610 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL _H_ 607 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698