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

Side by Side Diff: cc/shared_quad_state.cc

Issue 11412044: cc: Remove opaque flags from SharedQuadState and DrawQuad (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« 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 scoped_ptr<SharedQuadState> SharedQuadState::create(const WebKit::WebTransformat ionMatrix& quadTransform, const gfx::Rect& visibleContentRect, const gfx::Rect& clippedRectInTarget, float opacity, bool opaque) 9 scoped_ptr<SharedQuadState> SharedQuadState::create(const WebKit::WebTransformat ionMatrix& quadTransform, const gfx::Rect& visibleContentRect, const gfx::Rect& clippedRectInTarget, float opacity)
10 { 10 {
11 return make_scoped_ptr(new SharedQuadState(quadTransform, visibleContentRect , clippedRectInTarget, opacity, opaque)); 11 return make_scoped_ptr(new SharedQuadState(quadTransform, visibleContentRect , clippedRectInTarget, opacity));
12 } 12 }
13 13
14 SharedQuadState::SharedQuadState(const WebKit::WebTransformationMatrix& quadTran sform, const gfx::Rect& visibleContentRect, const gfx::Rect& clippedRectInTarget , float opacity, bool opaque) 14 SharedQuadState::SharedQuadState(const WebKit::WebTransformationMatrix& quadTran sform, const gfx::Rect& visibleContentRect, const gfx::Rect& clippedRectInTarget , float opacity)
15 : id(-1) 15 : id(-1)
16 , quadTransform(quadTransform) 16 , quadTransform(quadTransform)
17 , visibleContentRect(visibleContentRect) 17 , visibleContentRect(visibleContentRect)
18 , clippedRectInTarget(clippedRectInTarget) 18 , clippedRectInTarget(clippedRectInTarget)
19 , opacity(opacity) 19 , opacity(opacity)
20 , opaque(opaque)
21 { 20 {
22 } 21 }
23 22
24 scoped_ptr<SharedQuadState> SharedQuadState::copy() const 23 scoped_ptr<SharedQuadState> SharedQuadState::copy() const
25 { 24 {
26 scoped_ptr<SharedQuadState> copiedState(create(quadTransform, visibleContent Rect, clippedRectInTarget, opacity, opaque)); 25 scoped_ptr<SharedQuadState> copiedState(create(quadTransform, visibleContent Rect, clippedRectInTarget, opacity));
27 copiedState->id = id; 26 copiedState->id = id;
28 return copiedState.Pass(); 27 return copiedState.Pass();
29 } 28 }
30 29
31 } // namespace cc 30 } // 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