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

Side by Side Diff: content/common/gpu/stream_texture_android.cc

Issue 1818073002: Always apply UniformMatrix4fvStreamTextureMatrixCHROMIUM matrix argument. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GetTextureMatrix should be the only available method Created 4 years, 8 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 "content/common/gpu/stream_texture_android.h" 5 #include "content/common/gpu/stream_texture_android.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/strings/stringize_macros.h" 10 #include "base/strings/stringize_macros.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 if (owner_stub_) { 86 if (owner_stub_) {
87 owner_stub_->RemoveDestructionObserver(this); 87 owner_stub_->RemoveDestructionObserver(this);
88 owner_stub_->channel()->RemoveRoute(route_id_); 88 owner_stub_->channel()->RemoveRoute(route_id_);
89 } 89 }
90 } 90 }
91 91
92 // gpu::gles2::GLStreamTextureMatrix implementation 92 // gpu::gles2::GLStreamTextureMatrix implementation
93 void StreamTexture::GetTextureMatrix(float xform[16]) { 93 void StreamTexture::GetTextureMatrix(float xform[16]) {
94 UpdateTexImage(); 94 UpdateTexImage();
95 surface_texture_->GetTransformMatrix(xform); 95 surface_texture_->GetTransformMatrix(xform);
96 YInvertMatrix(xform);
96 } 97 }
97 98
98 void StreamTexture::OnWillDestroyStub() { 99 void StreamTexture::OnWillDestroyStub() {
99 owner_stub_->RemoveDestructionObserver(this); 100 owner_stub_->RemoveDestructionObserver(this);
100 owner_stub_->channel()->RemoveRoute(route_id_); 101 owner_stub_->channel()->RemoveRoute(route_id_);
101 102
102 if (framebuffer_) { 103 if (framebuffer_) {
103 scoped_ptr<ui::ScopedMakeCurrent> scoped_make_current(MakeStubCurrent()); 104 scoped_ptr<ui::ScopedMakeCurrent> scoped_make_current(MakeStubCurrent());
104 105
105 glDeleteProgram(program_); 106 glDeleteProgram(program_);
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 return false; 269 return false;
269 } 270 }
270 271
271 void StreamTexture::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 272 void StreamTexture::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
272 uint64_t process_tracing_id, 273 uint64_t process_tracing_id,
273 const std::string& dump_name) { 274 const std::string& dump_name) {
274 // TODO(ericrk): Add OnMemoryDump for GLImages. crbug.com/514914 275 // TODO(ericrk): Add OnMemoryDump for GLImages. crbug.com/514914
275 } 276 }
276 277
277 } // namespace content 278 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698