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

Side by Side Diff: cc/scrollbar_layer_impl.cc

Issue 11439026: Revert 171403 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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/scrollbar_layer_impl.h ('k') | cc/single_thread_proxy.h » ('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/scrollbar_layer_impl.h" 5 #include "cc/scrollbar_layer_impl.h"
6 6
7 #include "cc/quad_sink.h" 7 #include "cc/quad_sink.h"
8 #include "cc/scrollbar_animation_controller.h" 8 #include "cc/scrollbar_animation_controller.h"
9 #include "cc/texture_draw_quad.h" 9 #include "cc/texture_draw_quad.h"
10 #include "ui/gfx/rect_conversions.h" 10 #include "ui/gfx/rect_conversions.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // fore track quads. The back track texture contains (and displays) the butt ons. 118 // fore track quads. The back track texture contains (and displays) the butt ons.
119 if (!contentBoundsRect.IsEmpty()) { 119 if (!contentBoundsRect.IsEmpty()) {
120 gfx::Rect quadRect(contentBoundsRect); 120 gfx::Rect quadRect(contentBoundsRect);
121 gfx::Rect opaqueRect(contentsOpaque() ? quadRect : gfx::Rect()); 121 gfx::Rect opaqueRect(contentsOpaque() ? quadRect : gfx::Rect());
122 scoped_ptr<TextureDrawQuad> quad = TextureDrawQuad::Create(); 122 scoped_ptr<TextureDrawQuad> quad = TextureDrawQuad::Create();
123 quad->SetNew(sharedQuadState, quadRect, opaqueRect, m_backTrackResourceI d, premultipledAlpha, uvRect, flipped); 123 quad->SetNew(sharedQuadState, quadRect, opaqueRect, m_backTrackResourceI d, premultipledAlpha, uvRect, flipped);
124 quadSink.append(quad.PassAs<DrawQuad>(), appendQuadsData); 124 quadSink.append(quad.PassAs<DrawQuad>(), appendQuadsData);
125 } 125 }
126 } 126 }
127 127
128 void ScrollbarLayerImpl::didLoseOutputSurface() 128 void ScrollbarLayerImpl::didLoseContext()
129 { 129 {
130 m_backTrackResourceId = 0; 130 m_backTrackResourceId = 0;
131 m_foreTrackResourceId = 0; 131 m_foreTrackResourceId = 0;
132 m_thumbResourceId = 0; 132 m_thumbResourceId = 0;
133 } 133 }
134 134
135 bool ScrollbarLayerImpl::Scrollbar::isOverlay() const 135 bool ScrollbarLayerImpl::Scrollbar::isOverlay() const
136 { 136 {
137 return m_owner->m_isOverlayScrollbar; 137 return m_owner->m_isOverlayScrollbar;
138 } 138 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 { 211 {
212 return m_owner->m_isCustomScrollbar; 212 return m_owner->m_isCustomScrollbar;
213 } 213 }
214 214
215 const char* ScrollbarLayerImpl::layerTypeAsString() const 215 const char* ScrollbarLayerImpl::layerTypeAsString() const
216 { 216 {
217 return "ScrollbarLayer"; 217 return "ScrollbarLayer";
218 } 218 }
219 219
220 } // namespace cc 220 } // namespace cc
OLDNEW
« no previous file with comments | « cc/scrollbar_layer_impl.h ('k') | cc/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698