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

Side by Side Diff: gpu/command_buffer/service/texture_definition.cc

Issue 549253003: gpu: Allow CopyTexImage to be called with StreamTextures and GLImageSync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stream_texture_android.cc too Created 6 years, 3 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
« no previous file with comments | « gpu/command_buffer/service/stream_texture_manager_in_process_android.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "gpu/command_buffer/service/texture_definition.h" 5 #include "gpu/command_buffer/service/texture_definition.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "base/memory/linked_ptr.h" 9 #include "base/memory/linked_ptr.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 bool GLImageSync::BindTexImage(unsigned target) { 78 bool GLImageSync::BindTexImage(unsigned target) {
79 NOTREACHED(); 79 NOTREACHED();
80 return false; 80 return false;
81 } 81 }
82 82
83 void GLImageSync::ReleaseTexImage(unsigned target) { 83 void GLImageSync::ReleaseTexImage(unsigned target) {
84 NOTREACHED(); 84 NOTREACHED();
85 } 85 }
86 86
87 bool GLImageSync::CopyTexImage(unsigned target) { 87 bool GLImageSync::CopyTexImage(unsigned target) {
88 NOTREACHED();
89 return false; 88 return false;
90 } 89 }
91 90
92 void GLImageSync::WillUseTexImage() { 91 void GLImageSync::WillUseTexImage() {
93 if (buffer_.get()) 92 if (buffer_.get())
94 buffer_->WillRead(this); 93 buffer_->WillRead(this);
95 } 94 }
96 95
97 void GLImageSync::DidUseTexImage() { 96 void GLImageSync::DidUseTexImage() {
98 if (buffer_.get()) 97 if (buffer_.get())
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 492
494 // All structural changes should have orphaned the texture. 493 // All structural changes should have orphaned the texture.
495 if (image_buffer_.get() && !texture->GetLevelImage(texture->target(), 0)) 494 if (image_buffer_.get() && !texture->GetLevelImage(texture->target(), 0))
496 return false; 495 return false;
497 496
498 return true; 497 return true;
499 } 498 }
500 499
501 } // namespace gles2 500 } // namespace gles2
502 } // namespace gpu 501 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/stream_texture_manager_in_process_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698