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

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

Issue 16085003: Update refernces to Blink's Platform API (cc) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
« no previous file with comments | « cc/output/shader.cc ('k') | cc/quads/draw_quad_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/output/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/output/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/public/platform/WebGraphicsContext3D.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 int highp_threshold_min) 18 int highp_threshold_min)
19 : context_(context) 19 : context_(context)
20 , using_bind_uniforms_(using_bind_uniforms) 20 , using_bind_uniforms_(using_bind_uniforms)
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 GLC(context_, context_->bindTexture(GL_TEXTURE_2D, 0)); 124 GLC(context_, context_->bindTexture(GL_TEXTURE_2D, 0));
125 125
126 GLC(context_, context_->enable(GL_SCISSOR_TEST)); 126 GLC(context_, context_->enable(GL_SCISSOR_TEST));
127 } 127 }
128 128
129 void AcceleratedTextureCopier::Flush() { 129 void AcceleratedTextureCopier::Flush() {
130 GLC(context_, context_->flush()); 130 GLC(context_, context_->flush());
131 } 131 }
132 132
133 } // namespace cc 133 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/shader.cc ('k') | cc/quads/draw_quad_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698