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

Side by Side Diff: cc/shared_quad_state.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, 9 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 | « cc/shared_quad_state.h ('k') | cc/software_renderer_unittest.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #include "cc/shared_quad_state.h" 5 #include "cc/shared_quad_state.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 SharedQuadState::SharedQuadState() : is_clipped(false), opacity(0) {} 9 SharedQuadState::SharedQuadState() : is_clipped(false), opacity(0) {}
10 10
11 SharedQuadState::~SharedQuadState() {} 11 SharedQuadState::~SharedQuadState() {}
12 12
13 scoped_ptr<SharedQuadState> SharedQuadState::Create() { 13 scoped_ptr<SharedQuadState> SharedQuadState::Create() {
14 return make_scoped_ptr(new SharedQuadState); 14 return make_scoped_ptr(new SharedQuadState);
15 } 15 }
16 16
17 scoped_ptr<SharedQuadState> SharedQuadState::Copy() const { 17 scoped_ptr<SharedQuadState> SharedQuadState::Copy() const {
18 return make_scoped_ptr(new SharedQuadState(*this)); 18 return make_scoped_ptr(new SharedQuadState(*this));
19 } 19 }
20 20
21 void SharedQuadState::SetAll( 21 void SharedQuadState::SetAll(
22 const gfx::Transform& content_to_target_transform, 22 const gfx::Transform& content_to_target_transform,
23 const gfx::Size content_bounds,
23 const gfx::Rect& visible_content_rect, 24 const gfx::Rect& visible_content_rect,
24 const gfx::Rect& clip_rect, 25 const gfx::Rect& clip_rect,
25 bool is_clipped, 26 bool is_clipped,
26 float opacity) { 27 float opacity) {
27 this->content_to_target_transform = content_to_target_transform; 28 this->content_to_target_transform = content_to_target_transform;
29 this->content_bounds = content_bounds;
28 this->visible_content_rect = visible_content_rect; 30 this->visible_content_rect = visible_content_rect;
29 this->clip_rect = clip_rect; 31 this->clip_rect = clip_rect;
30 this->is_clipped = is_clipped; 32 this->is_clipped = is_clipped;
31 this->opacity = opacity; 33 this->opacity = opacity;
32 } 34 }
33 35
34 } // namespace cc 36 } // namespace cc
OLDNEW
« no previous file with comments | « cc/shared_quad_state.h ('k') | cc/software_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698