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

Side by Side Diff: content/browser/compositor/reflector_texture.cc

Issue 1802383002: Move gl_helper to content/browser/compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/browser/compositor/reflector_texture.h" 5 #include "content/browser/compositor/reflector_texture.h"
6 6
7 #include "content/browser/compositor/gl_helper.h"
7 #include "content/browser/compositor/owned_mailbox.h" 8 #include "content/browser/compositor/owned_mailbox.h"
8 #include "content/common/gpu/client/context_provider_command_buffer.h" 9 #include "content/common/gpu/client/context_provider_command_buffer.h"
9 #include "content/common/gpu/client/gl_helper.h"
10 #include "gpu/command_buffer/client/context_support.h" 10 #include "gpu/command_buffer/client/context_support.h"
11 #include "gpu/command_buffer/client/gles2_interface.h" 11 #include "gpu/command_buffer/client/gles2_interface.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 ReflectorTexture::ReflectorTexture(cc::ContextProvider* context_provider) 15 ReflectorTexture::ReflectorTexture(cc::ContextProvider* context_provider)
16 : texture_id_(0) { 16 : texture_id_(0) {
17 GLHelper* shared_helper = 17 GLHelper* shared_helper =
18 ImageTransportFactory::GetInstance()->GetGLHelper(); 18 ImageTransportFactory::GetInstance()->GetGLHelper();
19 mailbox_ = new OwnedMailbox(shared_helper); 19 mailbox_ = new OwnedMailbox(shared_helper);
(...skipping 19 matching lines...) Expand all
39 gl_helper_->InsertOrderingBarrier(); 39 gl_helper_->InsertOrderingBarrier();
40 } 40 }
41 41
42 void ReflectorTexture::CopyTextureSubImage(const gfx::Rect& rect) { 42 void ReflectorTexture::CopyTextureSubImage(const gfx::Rect& rect) {
43 gl_helper_->CopyTextureSubImage(texture_id_, rect); 43 gl_helper_->CopyTextureSubImage(texture_id_, rect);
44 // Insert a barrier for the same reason above. 44 // Insert a barrier for the same reason above.
45 gl_helper_->InsertOrderingBarrier(); 45 gl_helper_->InsertOrderingBarrier();
46 } 46 }
47 47
48 } // namespace content 48 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/owned_mailbox.cc ('k') | content/browser/compositor/surface_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698