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

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

Issue 668123003: cc: Support texture rect targets for masks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@base_for_texture_rect_changes
Patch Set: Created 6 years, 2 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') | cc/output/gl_renderer.cc » ('J')
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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 const TileProgramSwizzleAA* GetTileProgramSwizzleAA( 326 const TileProgramSwizzleAA* GetTileProgramSwizzleAA(
327 TexCoordPrecision precision, SamplerType sampler); 327 TexCoordPrecision precision, SamplerType sampler);
328 328
329 const TileCheckerboardProgram* GetTileCheckerboardProgram(); 329 const TileCheckerboardProgram* GetTileCheckerboardProgram();
330 330
331 const RenderPassProgram* GetRenderPassProgram( 331 const RenderPassProgram* GetRenderPassProgram(
332 TexCoordPrecision precision); 332 TexCoordPrecision precision);
333 const RenderPassProgramAA* GetRenderPassProgramAA( 333 const RenderPassProgramAA* GetRenderPassProgramAA(
334 TexCoordPrecision precision); 334 TexCoordPrecision precision);
335 const RenderPassMaskProgram* GetRenderPassMaskProgram( 335 const RenderPassMaskProgram* GetRenderPassMaskProgram(
336 TexCoordPrecision precision); 336 TexCoordPrecision precision,
337 SamplerType sampler);
337 const RenderPassMaskProgramAA* GetRenderPassMaskProgramAA( 338 const RenderPassMaskProgramAA* GetRenderPassMaskProgramAA(
338 TexCoordPrecision precision); 339 TexCoordPrecision precision,
340 SamplerType sampler);
339 const RenderPassColorMatrixProgram* GetRenderPassColorMatrixProgram( 341 const RenderPassColorMatrixProgram* GetRenderPassColorMatrixProgram(
340 TexCoordPrecision precision); 342 TexCoordPrecision precision);
341 const RenderPassColorMatrixProgramAA* GetRenderPassColorMatrixProgramAA( 343 const RenderPassColorMatrixProgramAA* GetRenderPassColorMatrixProgramAA(
342 TexCoordPrecision precision); 344 TexCoordPrecision precision);
343 const RenderPassMaskColorMatrixProgram* GetRenderPassMaskColorMatrixProgram( 345 const RenderPassMaskColorMatrixProgram* GetRenderPassMaskColorMatrixProgram(
344 TexCoordPrecision precision); 346 TexCoordPrecision precision,
347 SamplerType sampler);
345 const RenderPassMaskColorMatrixProgramAA* 348 const RenderPassMaskColorMatrixProgramAA*
346 GetRenderPassMaskColorMatrixProgramAA(TexCoordPrecision precision); 349 GetRenderPassMaskColorMatrixProgramAA(TexCoordPrecision precision,
350 SamplerType sampler);
347 351
348 const TextureProgram* GetTextureProgram( 352 const TextureProgram* GetTextureProgram(
349 TexCoordPrecision precision); 353 TexCoordPrecision precision);
350 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram( 354 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram(
351 TexCoordPrecision precision); 355 TexCoordPrecision precision);
352 const TextureBackgroundProgram* GetTextureBackgroundProgram( 356 const TextureBackgroundProgram* GetTextureBackgroundProgram(
353 TexCoordPrecision precision); 357 TexCoordPrecision precision);
354 const NonPremultipliedTextureBackgroundProgram* 358 const NonPremultipliedTextureBackgroundProgram*
355 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision); 359 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision);
356 const TextureProgram* GetTextureIOSurfaceProgram( 360 const TextureProgram* GetTextureIOSurfaceProgram(
(...skipping 26 matching lines...) Expand all
383 TextureProgram texture_program_[NumTexCoordPrecisions]; 387 TextureProgram texture_program_[NumTexCoordPrecisions];
384 NonPremultipliedTextureProgram 388 NonPremultipliedTextureProgram
385 nonpremultiplied_texture_program_[NumTexCoordPrecisions]; 389 nonpremultiplied_texture_program_[NumTexCoordPrecisions];
386 TextureBackgroundProgram texture_background_program_[NumTexCoordPrecisions]; 390 TextureBackgroundProgram texture_background_program_[NumTexCoordPrecisions];
387 NonPremultipliedTextureBackgroundProgram 391 NonPremultipliedTextureBackgroundProgram
388 nonpremultiplied_texture_background_program_[NumTexCoordPrecisions]; 392 nonpremultiplied_texture_background_program_[NumTexCoordPrecisions];
389 TextureProgram texture_io_surface_program_[NumTexCoordPrecisions]; 393 TextureProgram texture_io_surface_program_[NumTexCoordPrecisions];
390 394
391 RenderPassProgram render_pass_program_[NumTexCoordPrecisions]; 395 RenderPassProgram render_pass_program_[NumTexCoordPrecisions];
392 RenderPassProgramAA render_pass_program_aa_[NumTexCoordPrecisions]; 396 RenderPassProgramAA render_pass_program_aa_[NumTexCoordPrecisions];
393 RenderPassMaskProgram render_pass_mask_program_[NumTexCoordPrecisions]; 397 RenderPassMaskProgram
394 RenderPassMaskProgramAA render_pass_mask_program_aa_[NumTexCoordPrecisions]; 398 render_pass_mask_program_[NumTexCoordPrecisions][NumSamplerTypes];
399 RenderPassMaskProgramAA
400 render_pass_mask_program_aa_[NumTexCoordPrecisions][NumSamplerTypes];
395 RenderPassColorMatrixProgram 401 RenderPassColorMatrixProgram
396 render_pass_color_matrix_program_[NumTexCoordPrecisions]; 402 render_pass_color_matrix_program_[NumTexCoordPrecisions];
397 RenderPassColorMatrixProgramAA 403 RenderPassColorMatrixProgramAA
398 render_pass_color_matrix_program_aa_[NumTexCoordPrecisions]; 404 render_pass_color_matrix_program_aa_[NumTexCoordPrecisions];
399 RenderPassMaskColorMatrixProgram 405 RenderPassMaskColorMatrixProgram render_pass_mask_color_matrix_program_
400 render_pass_mask_color_matrix_program_[NumTexCoordPrecisions]; 406 [NumTexCoordPrecisions][NumSamplerTypes];
401 RenderPassMaskColorMatrixProgramAA 407 RenderPassMaskColorMatrixProgramAA render_pass_mask_color_matrix_program_aa_
402 render_pass_mask_color_matrix_program_aa_[NumTexCoordPrecisions]; 408 [NumTexCoordPrecisions][NumSamplerTypes];
403 409
404 VideoYUVProgram video_yuv_program_[NumTexCoordPrecisions]; 410 VideoYUVProgram video_yuv_program_[NumTexCoordPrecisions];
405 VideoYUVAProgram video_yuva_program_[NumTexCoordPrecisions]; 411 VideoYUVAProgram video_yuva_program_[NumTexCoordPrecisions];
406 VideoStreamTextureProgram 412 VideoStreamTextureProgram
407 video_stream_texture_program_[NumTexCoordPrecisions]; 413 video_stream_texture_program_[NumTexCoordPrecisions];
408 414
409 DebugBorderProgram debug_border_program_; 415 DebugBorderProgram debug_border_program_;
410 SolidColorProgram solid_color_program_; 416 SolidColorProgram solid_color_program_;
411 SolidColorProgramAA solid_color_program_aa_; 417 SolidColorProgramAA solid_color_program_aa_;
412 418
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 #if DEBUG_GL_CALLS && !defined(NDEBUG) 461 #if DEBUG_GL_CALLS && !defined(NDEBUG)
456 #define GLC(context, x) \ 462 #define GLC(context, x) \
457 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 463 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
458 #else 464 #else
459 #define GLC(context, x) (x) 465 #define GLC(context, x) (x)
460 #endif 466 #endif
461 467
462 } // namespace cc 468 } // namespace cc
463 469
464 #endif // CC_OUTPUT_GL_RENDERER_H_ 470 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | cc/output/gl_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698