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

Unified Diff: cc/output/gl_renderer.cc

Issue 16968002: Move implementation of WebFilterOperations into cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/filter_operations_unittest.cc ('k') | cc/output/render_surface_filters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index 2a27ff7810416861d3d38af9db571d95038265bf..8461d4840c8182f40e4338eac80281f17d7c4ec2 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -441,9 +441,9 @@ void GLRenderer::DrawDebugBorderQuad(const DrawingFrame* frame,
}
static inline SkBitmap ApplyFilters(GLRenderer* renderer,
- const WebKit::WebFilterOperations& filters,
+ const FilterOperations& filters,
ScopedResource* source_texture_resource) {
- if (filters.isEmpty())
+ if (filters.IsEmpty())
return SkBitmap();
ContextProvider* offscreen_contexts =
@@ -589,8 +589,8 @@ scoped_ptr<ScopedResource> GLRenderer::DrawBackgroundFilters(
// FIXME: When this algorithm changes, update
// LayerTreeHost::PrioritizeTextures() accordingly.
- const WebKit::WebFilterOperations& filters = quad->background_filters;
- DCHECK(!filters.isEmpty());
+ const FilterOperations& filters = quad->background_filters;
+ DCHECK(!filters.IsEmpty());
// FIXME: We only allow background filters on an opaque render surface because
// other surfaces may contain translucent pixels, and the contents behind
@@ -605,7 +605,7 @@ scoped_ptr<ScopedResource> GLRenderer::DrawBackgroundFilters(
contents_device_transform, SharedGeometryQuad().BoundingBox()));
int top, right, bottom, left;
- filters.getOutsets(top, right, bottom, left);
+ filters.GetOutsets(&top, &right, &bottom, &left);
window_rect.Inset(-left, -top, -right, -bottom);
window_rect.Intersect(
@@ -704,7 +704,7 @@ void GLRenderer::DrawRenderPassQuad(DrawingFrame* frame,
return;
scoped_ptr<ScopedResource> background_texture;
- if (!quad->background_filters.isEmpty()) {
+ if (!quad->background_filters.IsEmpty()) {
// The pixels from the filtered background should completely replace the
// current pixel values.
bool disable_blending = blend_enabled();
« no previous file with comments | « cc/output/filter_operations_unittest.cc ('k') | cc/output/render_surface_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698