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

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

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 TexCoordPrecision precision, SamplerType sampler); 329 TexCoordPrecision precision, SamplerType sampler);
330 330
331 const TileCheckerboardProgram* GetTileCheckerboardProgram(); 331 const TileCheckerboardProgram* GetTileCheckerboardProgram();
332 332
333 const RenderPassProgram* GetRenderPassProgram(TexCoordPrecision precision, 333 const RenderPassProgram* GetRenderPassProgram(TexCoordPrecision precision,
334 BlendMode blend_mode); 334 BlendMode blend_mode);
335 const RenderPassProgramAA* GetRenderPassProgramAA(TexCoordPrecision precision, 335 const RenderPassProgramAA* GetRenderPassProgramAA(TexCoordPrecision precision,
336 BlendMode blend_mode); 336 BlendMode blend_mode);
337 const RenderPassMaskProgram* GetRenderPassMaskProgram( 337 const RenderPassMaskProgram* GetRenderPassMaskProgram(
338 TexCoordPrecision precision, 338 TexCoordPrecision precision,
339 SamplerType sampler,
339 BlendMode blend_mode); 340 BlendMode blend_mode);
340 const RenderPassMaskProgramAA* GetRenderPassMaskProgramAA( 341 const RenderPassMaskProgramAA* GetRenderPassMaskProgramAA(
341 TexCoordPrecision precision, 342 TexCoordPrecision precision,
343 SamplerType sampler,
342 BlendMode blend_mode); 344 BlendMode blend_mode);
343 const RenderPassColorMatrixProgram* GetRenderPassColorMatrixProgram( 345 const RenderPassColorMatrixProgram* GetRenderPassColorMatrixProgram(
344 TexCoordPrecision precision, 346 TexCoordPrecision precision,
345 BlendMode blend_mode); 347 BlendMode blend_mode);
346 const RenderPassColorMatrixProgramAA* GetRenderPassColorMatrixProgramAA( 348 const RenderPassColorMatrixProgramAA* GetRenderPassColorMatrixProgramAA(
347 TexCoordPrecision precision, 349 TexCoordPrecision precision,
348 BlendMode blend_mode); 350 BlendMode blend_mode);
349 const RenderPassMaskColorMatrixProgram* GetRenderPassMaskColorMatrixProgram( 351 const RenderPassMaskColorMatrixProgram* GetRenderPassMaskColorMatrixProgram(
350 TexCoordPrecision precision, 352 TexCoordPrecision precision,
353 SamplerType sampler,
351 BlendMode blend_mode); 354 BlendMode blend_mode);
352 const RenderPassMaskColorMatrixProgramAA* 355 const RenderPassMaskColorMatrixProgramAA*
353 GetRenderPassMaskColorMatrixProgramAA(TexCoordPrecision precision, 356 GetRenderPassMaskColorMatrixProgramAA(TexCoordPrecision precision,
357 SamplerType sampler,
354 BlendMode blend_mode); 358 BlendMode blend_mode);
355 359
356 const TextureProgram* GetTextureProgram( 360 const TextureProgram* GetTextureProgram(
357 TexCoordPrecision precision); 361 TexCoordPrecision precision);
358 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram( 362 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram(
359 TexCoordPrecision precision); 363 TexCoordPrecision precision);
360 const TextureBackgroundProgram* GetTextureBackgroundProgram( 364 const TextureBackgroundProgram* GetTextureBackgroundProgram(
361 TexCoordPrecision precision); 365 TexCoordPrecision precision);
362 const NonPremultipliedTextureBackgroundProgram* 366 const NonPremultipliedTextureBackgroundProgram*
363 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision); 367 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision);
(...skipping 28 matching lines...) Expand all
392 NonPremultipliedTextureProgram 396 NonPremultipliedTextureProgram
393 nonpremultiplied_texture_program_[NumTexCoordPrecisions]; 397 nonpremultiplied_texture_program_[NumTexCoordPrecisions];
394 TextureBackgroundProgram texture_background_program_[NumTexCoordPrecisions]; 398 TextureBackgroundProgram texture_background_program_[NumTexCoordPrecisions];
395 NonPremultipliedTextureBackgroundProgram 399 NonPremultipliedTextureBackgroundProgram
396 nonpremultiplied_texture_background_program_[NumTexCoordPrecisions]; 400 nonpremultiplied_texture_background_program_[NumTexCoordPrecisions];
397 TextureProgram texture_io_surface_program_[NumTexCoordPrecisions]; 401 TextureProgram texture_io_surface_program_[NumTexCoordPrecisions];
398 402
399 RenderPassProgram render_pass_program_[NumTexCoordPrecisions][NumBlendModes]; 403 RenderPassProgram render_pass_program_[NumTexCoordPrecisions][NumBlendModes];
400 RenderPassProgramAA 404 RenderPassProgramAA
401 render_pass_program_aa_[NumTexCoordPrecisions][NumBlendModes]; 405 render_pass_program_aa_[NumTexCoordPrecisions][NumBlendModes];
402 RenderPassMaskProgram 406 RenderPassMaskProgram render_pass_mask_program_
403 render_pass_mask_program_[NumTexCoordPrecisions][NumBlendModes]; 407 [NumTexCoordPrecisions][NumSamplerTypes][NumBlendModes];
404 RenderPassMaskProgramAA 408 RenderPassMaskProgramAA render_pass_mask_program_aa_
405 render_pass_mask_program_aa_[NumTexCoordPrecisions][NumBlendModes]; 409 [NumTexCoordPrecisions][NumSamplerTypes][NumBlendModes];
406 RenderPassColorMatrixProgram 410 RenderPassColorMatrixProgram
407 render_pass_color_matrix_program_[NumTexCoordPrecisions][NumBlendModes]; 411 render_pass_color_matrix_program_[NumTexCoordPrecisions][NumBlendModes];
408 RenderPassColorMatrixProgramAA render_pass_color_matrix_program_aa_ 412 RenderPassColorMatrixProgramAA render_pass_color_matrix_program_aa_
409 [NumTexCoordPrecisions][NumBlendModes]; 413 [NumTexCoordPrecisions][NumBlendModes];
410 RenderPassMaskColorMatrixProgram render_pass_mask_color_matrix_program_ 414 RenderPassMaskColorMatrixProgram render_pass_mask_color_matrix_program_
411 [NumTexCoordPrecisions][NumBlendModes]; 415 [NumTexCoordPrecisions][NumSamplerTypes][NumBlendModes];
412 RenderPassMaskColorMatrixProgramAA render_pass_mask_color_matrix_program_aa_ 416 RenderPassMaskColorMatrixProgramAA render_pass_mask_color_matrix_program_aa_
413 [NumTexCoordPrecisions][NumBlendModes]; 417 [NumTexCoordPrecisions][NumSamplerTypes][NumBlendModes];
414 418
415 VideoYUVProgram video_yuv_program_[NumTexCoordPrecisions]; 419 VideoYUVProgram video_yuv_program_[NumTexCoordPrecisions];
416 VideoYUVAProgram video_yuva_program_[NumTexCoordPrecisions]; 420 VideoYUVAProgram video_yuva_program_[NumTexCoordPrecisions];
417 VideoStreamTextureProgram 421 VideoStreamTextureProgram
418 video_stream_texture_program_[NumTexCoordPrecisions]; 422 video_stream_texture_program_[NumTexCoordPrecisions];
419 423
420 DebugBorderProgram debug_border_program_; 424 DebugBorderProgram debug_border_program_;
421 SolidColorProgram solid_color_program_; 425 SolidColorProgram solid_color_program_;
422 SolidColorProgramAA solid_color_program_aa_; 426 SolidColorProgramAA solid_color_program_aa_;
423 427
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 #if DEBUG_GL_CALLS && !defined(NDEBUG) 471 #if DEBUG_GL_CALLS && !defined(NDEBUG)
468 #define GLC(context, x) \ 472 #define GLC(context, x) \
469 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 473 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
470 #else 474 #else
471 #define GLC(context, x) (x) 475 #define GLC(context, x) (x)
472 #endif 476 #endif
473 477
474 } // namespace cc 478 } // namespace cc
475 479
476 #endif // CC_OUTPUT_GL_RENDERER_H_ 480 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698