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

Side by Side Diff: cc/output/texture_copier.cc

Issue 12912006: Part 4 of cc/ directory shuffles: output (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "cc/texture_copier.h" 5 #include "cc/output/texture_copier.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "cc/gl_renderer.h" // For the GLC() macro. 9 #include "cc/output/gl_renderer.h" // For the GLC() macro.
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
11 #include "third_party/khronos/GLES2/gl2.h" 11 #include "third_party/khronos/GLES2/gl2.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 AcceleratedTextureCopier::AcceleratedTextureCopier( 15 AcceleratedTextureCopier::AcceleratedTextureCopier(
16 WebKit::WebGraphicsContext3D* context, 16 WebKit::WebGraphicsContext3D* context,
17 bool using_bind_uniforms) 17 bool using_bind_uniforms)
18 : context_(context), using_bind_uniforms_(using_bind_uniforms) { 18 : context_(context), using_bind_uniforms_(using_bind_uniforms) {
19 DCHECK(context_); 19 DCHECK(context_);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 GLC(context_, context_->bindTexture(GL_TEXTURE_2D, 0)); 106 GLC(context_, context_->bindTexture(GL_TEXTURE_2D, 0));
107 107
108 GLC(context_, context_->enable(GL_SCISSOR_TEST)); 108 GLC(context_, context_->enable(GL_SCISSOR_TEST));
109 } 109 }
110 110
111 void AcceleratedTextureCopier::Flush() { 111 void AcceleratedTextureCopier::Flush() {
112 GLC(context_, context_->flush()); 112 GLC(context_, context_->flush());
113 } 113 }
114 114
115 } // namespace cc 115 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698