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

Side by Side Diff: cc/output/gl_renderer.h

Issue 1124203006: cc: Render TextureLayer which texture target is not GL_TEXTURE_2D correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fix unittests Created 5 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
« no previous file with comments | « no previous file | cc/output/gl_renderer.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 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 CC_OUTPUT_GL_RENDERER_H_ 5 #ifndef CC_OUTPUT_GL_RENDERER_H_
6 #define CC_OUTPUT_GL_RENDERER_H_ 6 #define CC_OUTPUT_GL_RENDERER_H_
7 7
8 #include "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/base/scoped_ptr_deque.h" 10 #include "cc/base/scoped_ptr_deque.h"
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 TexCoordPrecision precision, 380 TexCoordPrecision precision,
381 SamplerType sampler, 381 SamplerType sampler,
382 BlendMode blend_mode, 382 BlendMode blend_mode,
383 bool mask_for_background); 383 bool mask_for_background);
384 const RenderPassMaskColorMatrixProgramAA* 384 const RenderPassMaskColorMatrixProgramAA*
385 GetRenderPassMaskColorMatrixProgramAA(TexCoordPrecision precision, 385 GetRenderPassMaskColorMatrixProgramAA(TexCoordPrecision precision,
386 SamplerType sampler, 386 SamplerType sampler,
387 BlendMode blend_mode, 387 BlendMode blend_mode,
388 bool mask_for_background); 388 bool mask_for_background);
389 389
390 const TextureProgram* GetTextureProgram( 390 const TextureProgram* GetTextureProgram(TexCoordPrecision precision,
391 TexCoordPrecision precision); 391 SamplerType sampler);
392 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram( 392 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram(
393 TexCoordPrecision precision); 393 TexCoordPrecision precision,
394 SamplerType sampler);
394 const TextureBackgroundProgram* GetTextureBackgroundProgram( 395 const TextureBackgroundProgram* GetTextureBackgroundProgram(
395 TexCoordPrecision precision); 396 TexCoordPrecision precision,
397 SamplerType sampler);
396 const NonPremultipliedTextureBackgroundProgram* 398 const NonPremultipliedTextureBackgroundProgram*
397 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision); 399 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision,
400 SamplerType sampler);
398 const TextureProgram* GetTextureIOSurfaceProgram( 401 const TextureProgram* GetTextureIOSurfaceProgram(
399 TexCoordPrecision precision); 402 TexCoordPrecision precision);
400 403
401 const VideoYUVProgram* GetVideoYUVProgram( 404 const VideoYUVProgram* GetVideoYUVProgram(
402 TexCoordPrecision precision); 405 TexCoordPrecision precision);
403 const VideoYUVAProgram* GetVideoYUVAProgram( 406 const VideoYUVAProgram* GetVideoYUVAProgram(
404 TexCoordPrecision precision); 407 TexCoordPrecision precision);
405 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( 408 const VideoStreamTextureProgram* GetVideoStreamTextureProgram(
406 TexCoordPrecision precision); 409 TexCoordPrecision precision);
407 410
(...skipping 10 matching lines...) Expand all
418 TileProgramSwizzle tile_program_swizzle_[LAST_TEX_COORD_PRECISION + 421 TileProgramSwizzle tile_program_swizzle_[LAST_TEX_COORD_PRECISION +
419 1][LAST_SAMPLER_TYPE + 1]; 422 1][LAST_SAMPLER_TYPE + 1];
420 TileProgramSwizzleOpaque 423 TileProgramSwizzleOpaque
421 tile_program_swizzle_opaque_[LAST_TEX_COORD_PRECISION + 424 tile_program_swizzle_opaque_[LAST_TEX_COORD_PRECISION +
422 1][LAST_SAMPLER_TYPE + 1]; 425 1][LAST_SAMPLER_TYPE + 1];
423 TileProgramSwizzleAA tile_program_swizzle_aa_[LAST_TEX_COORD_PRECISION + 426 TileProgramSwizzleAA tile_program_swizzle_aa_[LAST_TEX_COORD_PRECISION +
424 1][LAST_SAMPLER_TYPE + 1]; 427 1][LAST_SAMPLER_TYPE + 1];
425 428
426 TileCheckerboardProgram tile_checkerboard_program_; 429 TileCheckerboardProgram tile_checkerboard_program_;
427 430
428 TextureProgram texture_program_[LAST_TEX_COORD_PRECISION + 1]; 431 TextureProgram
432 texture_program_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1];
429 NonPremultipliedTextureProgram 433 NonPremultipliedTextureProgram
430 nonpremultiplied_texture_program_[LAST_TEX_COORD_PRECISION + 1]; 434 nonpremultiplied_texture_program_[LAST_TEX_COORD_PRECISION +
435 1][LAST_SAMPLER_TYPE + 1];
431 TextureBackgroundProgram 436 TextureBackgroundProgram
432 texture_background_program_[LAST_TEX_COORD_PRECISION + 1]; 437 texture_background_program_[LAST_TEX_COORD_PRECISION +
438 1][LAST_SAMPLER_TYPE + 1];
433 NonPremultipliedTextureBackgroundProgram 439 NonPremultipliedTextureBackgroundProgram
434 nonpremultiplied_texture_background_program_[LAST_TEX_COORD_PRECISION + 440 nonpremultiplied_texture_background_program_[LAST_TEX_COORD_PRECISION +
435 1]; 441 1][LAST_SAMPLER_TYPE + 1];
436 TextureProgram texture_io_surface_program_[LAST_TEX_COORD_PRECISION + 1]; 442 TextureProgram texture_io_surface_program_[LAST_TEX_COORD_PRECISION + 1];
437 443
438 RenderPassProgram 444 RenderPassProgram
439 render_pass_program_[LAST_TEX_COORD_PRECISION + 1][LAST_BLEND_MODE + 1]; 445 render_pass_program_[LAST_TEX_COORD_PRECISION + 1][LAST_BLEND_MODE + 1];
440 RenderPassProgramAA render_pass_program_aa_[LAST_TEX_COORD_PRECISION + 446 RenderPassProgramAA render_pass_program_aa_[LAST_TEX_COORD_PRECISION +
441 1][LAST_BLEND_MODE + 1]; 447 1][LAST_BLEND_MODE + 1];
442 RenderPassMaskProgram 448 RenderPassMaskProgram
443 render_pass_mask_program_[LAST_TEX_COORD_PRECISION + 1] 449 render_pass_mask_program_[LAST_TEX_COORD_PRECISION + 1]
444 [LAST_SAMPLER_TYPE + 1] 450 [LAST_SAMPLER_TYPE + 1]
445 [LAST_BLEND_MODE + 1] 451 [LAST_BLEND_MODE + 1]
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 514
509 SkBitmap on_demand_tile_raster_bitmap_; 515 SkBitmap on_demand_tile_raster_bitmap_;
510 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_; 516 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_;
511 BoundGeometry bound_geometry_; 517 BoundGeometry bound_geometry_;
512 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 518 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
513 }; 519 };
514 520
515 } // namespace cc 521 } // namespace cc
516 522
517 #endif // CC_OUTPUT_GL_RENDERER_H_ 523 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698