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

Unified Diff: cc/output/gl_renderer.cc

Issue 1633283002: cc: remove unused texture rect params, functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/output/gl_renderer.h ('k') | cc/output/software_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index 4dd3bdeb2a161c08646d0e844f1d5729911c0c5b..7ba415c227ef4fe541f31a0634bd604d659278a3 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -2946,16 +2946,6 @@ void GLRenderer::GetFramebufferTexture(unsigned texture_id,
gl_->BindTexture(GL_TEXTURE_2D, 0);
}
-bool GLRenderer::UseScopedTexture(DrawingFrame* frame,
- const ScopedResource* texture,
- const gfx::Rect& viewport_rect) {
- DCHECK(texture->id());
- frame->current_render_pass = NULL;
- frame->current_texture = texture;
-
- return BindFramebufferToTexture(frame, texture, viewport_rect);
-}
-
void GLRenderer::BindFramebufferToOutputSurface(DrawingFrame* frame) {
current_framebuffer_lock_ = nullptr;
output_surface_->BindFramebuffer();
@@ -2969,8 +2959,7 @@ void GLRenderer::BindFramebufferToOutputSurface(DrawingFrame* frame) {
}
bool GLRenderer::BindFramebufferToTexture(DrawingFrame* frame,
- const ScopedResource* texture,
- const gfx::Rect& target_rect) {
+ const ScopedResource* texture) {
DCHECK(texture->id());
// Explicitly release lock, otherwise we can crash when try to lock
« no previous file with comments | « cc/output/gl_renderer.h ('k') | cc/output/software_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698