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

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

Issue 268063002: Remove command_buffer/common/types.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h" 5 #include "gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "gpu/command_buffer/common/types.h"
11 #include "gpu/command_buffer/service/gl_utils.h" 10 #include "gpu/command_buffer/service/gl_utils.h"
12 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 11 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
13 12
14 #define SHADER(src) \ 13 #define SHADER(src) \
15 "#ifdef GL_ES\n" \ 14 "#ifdef GL_ES\n" \
16 "precision mediump float;\n" \ 15 "precision mediump float;\n" \
17 "#define TexCoordPrecision mediump\n" \ 16 "#define TexCoordPrecision mediump\n" \
18 "#else\n" \ 17 "#else\n" \
19 "#define TexCoordPrecision\n" \ 18 "#define TexCoordPrecision\n" \
20 "#endif\n" #src 19 "#endif\n" #src
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 decoder->RestoreTextureState(dest_id); 387 decoder->RestoreTextureState(dest_id);
389 decoder->RestoreTextureUnitBindings(0); 388 decoder->RestoreTextureUnitBindings(0);
390 decoder->RestoreActiveTexture(); 389 decoder->RestoreActiveTexture();
391 decoder->RestoreProgramBindings(); 390 decoder->RestoreProgramBindings();
392 decoder->RestoreBufferBindings(); 391 decoder->RestoreBufferBindings();
393 decoder->RestoreFramebufferBindings(); 392 decoder->RestoreFramebufferBindings();
394 decoder->RestoreGlobalState(); 393 decoder->RestoreGlobalState();
395 } 394 }
396 395
397 } // namespace gpu 396 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698