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

Side by Side Diff: chrome/renderer/webgraphicscontext3d_command_buffer_impl.h

Issue 4268004: Properly advertise GL_CHROMIUM_copy_texture_to_parent_texture extension.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « no previous file | chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 5 #ifndef CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
6 #define CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 6 #define CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 virtual unsigned createTexture(); 333 virtual unsigned createTexture();
334 334
335 virtual void deleteBuffer(unsigned); 335 virtual void deleteBuffer(unsigned);
336 virtual void deleteFramebuffer(unsigned); 336 virtual void deleteFramebuffer(unsigned);
337 virtual void deleteProgram(unsigned); 337 virtual void deleteProgram(unsigned);
338 virtual void deleteRenderbuffer(unsigned); 338 virtual void deleteRenderbuffer(unsigned);
339 virtual void deleteShader(unsigned); 339 virtual void deleteShader(unsigned);
340 virtual void deleteTexture(unsigned); 340 virtual void deleteTexture(unsigned);
341 341
342 virtual void synthesizeGLError(unsigned long error); 342 virtual void synthesizeGLError(unsigned long error);
343 virtual bool supportsBGRA(); 343 virtual bool supportsBGRA(); // TODO(kbr): remove
344 344
345 virtual bool supportsMapSubCHROMIUM(); 345 virtual bool supportsMapSubCHROMIUM(); // TODO(kbr): remove
346 virtual void* mapBufferSubDataCHROMIUM( 346 virtual void* mapBufferSubDataCHROMIUM(
347 unsigned target, int offset, int size, unsigned access); 347 unsigned target, int offset, int size, unsigned access);
348 virtual void unmapBufferSubDataCHROMIUM(const void*); 348 virtual void unmapBufferSubDataCHROMIUM(const void*);
349 virtual void* mapTexSubImage2DCHROMIUM( 349 virtual void* mapTexSubImage2DCHROMIUM(
350 unsigned target, 350 unsigned target,
351 int level, 351 int level,
352 int xoffset, 352 int xoffset,
353 int yoffset, 353 int yoffset,
354 int width, 354 int width,
355 int height, 355 int height,
356 unsigned format, 356 unsigned format,
357 unsigned type, 357 unsigned type,
358 unsigned access); 358 unsigned access);
359 virtual void unmapTexSubImage2DCHROMIUM(const void*); 359 virtual void unmapTexSubImage2DCHROMIUM(const void*);
360 360
361 // TODO(kbr): remove supportsCopyTextureToParentTextureCHROMIUM
361 virtual bool supportsCopyTextureToParentTextureCHROMIUM(); 362 virtual bool supportsCopyTextureToParentTextureCHROMIUM();
362 virtual void copyTextureToParentTextureCHROMIUM( 363 virtual void copyTextureToParentTextureCHROMIUM(
363 unsigned texture, unsigned parentTexture); 364 unsigned texture, unsigned parentTexture);
364 365
365 virtual unsigned createCompositorTexture(unsigned width, unsigned height); 366 virtual unsigned createCompositorTexture(unsigned width, unsigned height);
366 virtual void deleteCompositorTexture(unsigned parent_texture); 367 virtual void deleteCompositorTexture(unsigned parent_texture);
367 virtual void copyTextureToCompositor(unsigned texture, 368 virtual void copyTextureToCompositor(unsigned texture,
368 unsigned parent_texture); 369 unsigned parent_texture);
369 370
370 private: 371 private:
(...skipping 19 matching lines...) Expand all
390 scoped_ptr<uint8> scanline_; 391 scoped_ptr<uint8> scanline_;
391 void FlipVertically(uint8* framebuffer, 392 void FlipVertically(uint8* framebuffer,
392 unsigned int width, 393 unsigned int width,
393 unsigned int height); 394 unsigned int height);
394 #endif 395 #endif
395 }; 396 };
396 397
397 #endif // defined(ENABLE_GPU) 398 #endif // defined(ENABLE_GPU)
398 #endif // CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 399 #endif // CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
399 400
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698