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

Unified Diff: cc/tile_draw_quad.cc

Issue 12328098: cc: Moving anti-aliasing decision to parent compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@solidaa
Patch Set: Rebase to tip of tree Created 7 years, 10 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/tile_draw_quad.h ('k') | cc/tiled_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile_draw_quad.cc
diff --git a/cc/tile_draw_quad.cc b/cc/tile_draw_quad.cc
index f430f2b8c2ead90651a27ed54cee0319f49b9a50..13b1d33622498204bffee0524335847042ecb4aa 100644
--- a/cc/tile_draw_quad.cc
+++ b/cc/tile_draw_quad.cc
@@ -11,11 +11,7 @@ namespace cc {
TileDrawQuad::TileDrawQuad()
: resource_id(0),
- swizzle_contents(false),
- left_edge_aa(false),
- top_edge_aa(false),
- right_edge_aa(false),
- bottom_edge_aa(false) {
+ swizzle_contents(false) {
}
scoped_ptr<TileDrawQuad> TileDrawQuad::Create() {
@@ -28,11 +24,7 @@ void TileDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
unsigned resource_id,
const gfx::RectF& tex_coord_rect,
gfx::Size texture_size,
- bool swizzle_contents,
- bool left_edge_aa,
- bool top_edge_aa,
- bool right_edge_aa,
- bool bottom_edge_aa) {
+ bool swizzle_contents) {
gfx::Rect visible_rect = rect;
bool needs_blending = false;
DrawQuad::SetAll(shared_quad_state, DrawQuad::TILED_CONTENT, rect,
@@ -41,13 +33,6 @@ void TileDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
this->tex_coord_rect = tex_coord_rect;
this->texture_size = texture_size;
this->swizzle_contents = swizzle_contents;
- this->left_edge_aa = left_edge_aa;
- this->top_edge_aa = top_edge_aa;
- this->right_edge_aa = right_edge_aa;
- this->bottom_edge_aa = bottom_edge_aa;
-
- // Override needs_blending after initializing the quad.
- this->needs_blending = IsAntialiased();
}
void TileDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
@@ -58,21 +43,13 @@ void TileDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
unsigned resource_id,
const gfx::RectF& tex_coord_rect,
gfx::Size texture_size,
- bool swizzle_contents,
- bool left_edge_aa,
- bool top_edge_aa,
- bool right_edge_aa,
- bool bottom_edge_aa) {
+ bool swizzle_contents) {
DrawQuad::SetAll(shared_quad_state, DrawQuad::TILED_CONTENT, rect,
opaque_rect, visible_rect, needs_blending);
this->resource_id = resource_id;
this->tex_coord_rect = tex_coord_rect;
this->texture_size = texture_size;
this->swizzle_contents = swizzle_contents;
- this->left_edge_aa = left_edge_aa;
- this->top_edge_aa = top_edge_aa;
- this->right_edge_aa = right_edge_aa;
- this->bottom_edge_aa = bottom_edge_aa;
}
void TileDrawQuad::IterateResources(
« no previous file with comments | « cc/tile_draw_quad.h ('k') | cc/tiled_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698