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

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

Issue 608523003: Implement mix-blend-mode=screen using glBlendFunc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: really remove quad argument this time... 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') | 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 private: 136 private:
137 friend class GLRendererShaderPixelTest; 137 friend class GLRendererShaderPixelTest;
138 friend class GLRendererShaderTest; 138 friend class GLRendererShaderTest;
139 139
140 static void ToGLMatrix(float* gl_matrix, const gfx::Transform& transform); 140 static void ToGLMatrix(float* gl_matrix, const gfx::Transform& transform);
141 141
142 void DrawCheckerboardQuad(const DrawingFrame* frame, 142 void DrawCheckerboardQuad(const DrawingFrame* frame,
143 const CheckerboardDrawQuad* quad); 143 const CheckerboardDrawQuad* quad);
144 void DrawDebugBorderQuad(const DrawingFrame* frame, 144 void DrawDebugBorderQuad(const DrawingFrame* frame,
145 const DebugBorderDrawQuad* quad); 145 const DebugBorderDrawQuad* quad);
146 static bool ShouldApplyBlendModeUsingBlendFunc(const DrawQuad* quad);
147 void ApplyBlendModeUsingBlendFunc(const DrawQuad* quad);
148 void RestoreBlendFuncToDefault();
146 scoped_ptr<ScopedResource> GetBackgroundWithFilters( 149 scoped_ptr<ScopedResource> GetBackgroundWithFilters(
147 DrawingFrame* frame, 150 DrawingFrame* frame,
148 const RenderPassDrawQuad* quad, 151 const RenderPassDrawQuad* quad,
149 const gfx::Transform& contents_device_transform, 152 const gfx::Transform& contents_device_transform,
150 const gfx::Transform& contents_device_transformInverse, 153 const gfx::Transform& contents_device_transformInverse,
151 bool* background_changed); 154 bool* background_changed);
152 void DrawRenderPassQuad(DrawingFrame* frame, const RenderPassDrawQuad* quad); 155 void DrawRenderPassQuad(DrawingFrame* frame, const RenderPassDrawQuad* quad);
153 void DrawSolidColorQuad(const DrawingFrame* frame, 156 void DrawSolidColorQuad(const DrawingFrame* frame,
154 const SolidColorDrawQuad* quad); 157 const SolidColorDrawQuad* quad);
155 void DrawStreamVideoQuad(const DrawingFrame* frame, 158 void DrawStreamVideoQuad(const DrawingFrame* frame,
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 #if DEBUG_GL_CALLS && !defined(NDEBUG) 436 #if DEBUG_GL_CALLS && !defined(NDEBUG)
434 #define GLC(context, x) \ 437 #define GLC(context, x) \
435 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 438 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
436 #else 439 #else
437 #define GLC(context, x) (x) 440 #define GLC(context, x) (x)
438 #endif 441 #endif
439 442
440 } // namespace cc 443 } // namespace cc
441 444
442 #endif // CC_OUTPUT_GL_RENDERER_H_ 445 #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