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

Unified Diff: gpu/command_buffer/service/framebuffer_manager.cc

Issue 2190543005: Command buffer: feedback loop detection for CopyTexSubImage3D (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Command buffer: feedback loop detection for CopyTexSubImage3D Created 4 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/framebuffer_manager.cc
diff --git a/gpu/command_buffer/service/framebuffer_manager.cc b/gpu/command_buffer/service/framebuffer_manager.cc
index cce15a22b536d25281986b38176f3381db39a7b8..4de8bb44c008bba9573fbed405476f71fee1ef19 100644
--- a/gpu/command_buffer/service/framebuffer_manager.cc
+++ b/gpu/command_buffer/service/framebuffer_manager.cc
@@ -136,7 +136,8 @@ class RenderbufferAttachment
}
bool FormsFeedbackLoop(TextureRef* /* texture */,
- GLint /*level */) const override {
+ GLint /* level */,
+ GLint /* layer */) const override {
return false;
}
@@ -306,8 +307,10 @@ class TextureAttachment
texture_ref_.get(), target_, level_, signature);
}
- bool FormsFeedbackLoop(TextureRef* texture, GLint level) const override {
- return texture == texture_ref_.get() && level == level_;
+ bool FormsFeedbackLoop(TextureRef* texture,
+ GLint level, GLint layer) const override {
+ return texture == texture_ref_.get() &&
+ level == level_ && layer == layer_;
qiankun 2016/07/28 13:59:31 I suggest 4 space indent to return.
yunchao 2016/07/28 15:53:05 Done.
}
bool EmulatingRGB() const override {

Powered by Google App Engine
This is Rietveld 408576698