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

Side by Side Diff: cc/output/output_surface.cc

Issue 394113002: Tiling priorities in Android Webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/output/output_surface.h" 5 #include "cc/output/output_surface.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 88 }
89 89
90 void OutputSurface::SetExternalStencilTest(bool enabled) { 90 void OutputSurface::SetExternalStencilTest(bool enabled) {
91 external_stencil_test_enabled_ = enabled; 91 external_stencil_test_enabled_ = enabled;
92 } 92 }
93 93
94 void OutputSurface::SetExternalDrawConstraints( 94 void OutputSurface::SetExternalDrawConstraints(
95 const gfx::Transform& transform, 95 const gfx::Transform& transform,
96 const gfx::Rect& viewport, 96 const gfx::Rect& viewport,
97 const gfx::Rect& clip, 97 const gfx::Rect& clip,
98 const gfx::Rect& external_tiling_rect,
99 const gfx::Transform& external_tiling_transform,
98 bool resourceless_software_draw) { 100 bool resourceless_software_draw) {
99 client_->SetExternalDrawConstraints( 101 client_->SetExternalDrawConstraints(transform,
100 transform, viewport, clip, resourceless_software_draw); 102 viewport,
103 clip,
104 external_tiling_rect,
105 external_tiling_transform,
106 resourceless_software_draw);
101 } 107 }
102 108
103 OutputSurface::~OutputSurface() { 109 OutputSurface::~OutputSurface() {
104 ResetContext3d(); 110 ResetContext3d();
105 } 111 }
106 112
107 bool OutputSurface::HasExternalStencilTest() const { 113 bool OutputSurface::HasExternalStencilTest() const {
108 return external_stencil_test_enabled_; 114 return external_stencil_test_enabled_;
109 } 115 }
110 116
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 TRACE_EVENT1("cc", "OutputSurface::SetMemoryPolicy", 264 TRACE_EVENT1("cc", "OutputSurface::SetMemoryPolicy",
259 "bytes_limit_when_visible", policy.bytes_limit_when_visible); 265 "bytes_limit_when_visible", policy.bytes_limit_when_visible);
260 // Just ignore the memory manager when it says to set the limit to zero 266 // Just ignore the memory manager when it says to set the limit to zero
261 // bytes. This will happen when the memory manager thinks that the renderer 267 // bytes. This will happen when the memory manager thinks that the renderer
262 // is not visible (which the renderer knows better). 268 // is not visible (which the renderer knows better).
263 if (policy.bytes_limit_when_visible) 269 if (policy.bytes_limit_when_visible)
264 client_->SetMemoryPolicy(policy); 270 client_->SetMemoryPolicy(policy);
265 } 271 }
266 272
267 } // namespace cc 273 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698