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

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

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
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/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 13 matching lines...) Expand all
24 #include "gpu/command_buffer/service/test_helper.h" 24 #include "gpu/command_buffer/service/test_helper.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 #include "ui/gl/gl_implementation.h" 26 #include "ui/gl/gl_implementation.h"
27 #include "ui/gl/gl_mock.h" 27 #include "ui/gl/gl_mock.h"
28 #include "ui/gl/gl_surface_stub.h" 28 #include "ui/gl/gl_surface_stub.h"
29 29
30 #if !defined(GL_DEPTH24_STENCIL8) 30 #if !defined(GL_DEPTH24_STENCIL8)
31 #define GL_DEPTH24_STENCIL8 0x88F0 31 #define GL_DEPTH24_STENCIL8 0x88F0
32 #endif 32 #endif
33 33
34 using ::gfx::MockGLInterface; 34 using ::gl::MockGLInterface;
35 using ::testing::_; 35 using ::testing::_;
36 using ::testing::DoAll; 36 using ::testing::DoAll;
37 using ::testing::InSequence; 37 using ::testing::InSequence;
38 using ::testing::Invoke; 38 using ::testing::Invoke;
39 using ::testing::MatcherCast; 39 using ::testing::MatcherCast;
40 using ::testing::Mock; 40 using ::testing::Mock;
41 using ::testing::Pointee; 41 using ::testing::Pointee;
42 using ::testing::Return; 42 using ::testing::Return;
43 using ::testing::SaveArg; 43 using ::testing::SaveArg;
44 using ::testing::SetArrayArgument; 44 using ::testing::SetArrayArgument;
45 using ::testing::SetArgumentPointee; 45 using ::testing::SetArgumentPointee;
46 using ::testing::SetArgPointee; 46 using ::testing::SetArgPointee;
47 using ::testing::StrEq; 47 using ::testing::StrEq;
48 using ::testing::StrictMock; 48 using ::testing::StrictMock;
49 49
50 namespace gpu { 50 namespace gpu {
51 namespace gles2 { 51 namespace gles2 {
52 52
53 namespace { 53 namespace {
54 54
55 void SetupUpdateES3UnpackParametersExpectations( 55 void SetupUpdateES3UnpackParametersExpectations(::gl::MockGLInterface* gl,
56 ::gfx::MockGLInterface* gl, 56 GLint row_length,
57 GLint row_length, 57 GLint image_height) {
58 GLint image_height) {
59 EXPECT_CALL(*gl, PixelStorei(GL_UNPACK_ROW_LENGTH, row_length)) 58 EXPECT_CALL(*gl, PixelStorei(GL_UNPACK_ROW_LENGTH, row_length))
60 .Times(1) 59 .Times(1)
61 .RetiresOnSaturation(); 60 .RetiresOnSaturation();
62 EXPECT_CALL(*gl, PixelStorei(GL_UNPACK_IMAGE_HEIGHT, image_height)) 61 EXPECT_CALL(*gl, PixelStorei(GL_UNPACK_IMAGE_HEIGHT, image_height))
63 .Times(1) 62 .Times(1)
64 .RetiresOnSaturation(); 63 .RetiresOnSaturation();
65 } 64 }
66 65
67 } // namespace anonymous 66 } // namespace anonymous
68 67
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 // TODO(vmiura): Tests for ContextState::RestoreProgramBindings(). 490 // TODO(vmiura): Tests for ContextState::RestoreProgramBindings().
492 491
493 // TODO(vmiura): Tests for ContextState::RestoreRenderbufferBindings(). 492 // TODO(vmiura): Tests for ContextState::RestoreRenderbufferBindings().
494 493
495 // TODO(vmiura): Tests for ContextState::RestoreProgramBindings(). 494 // TODO(vmiura): Tests for ContextState::RestoreProgramBindings().
496 495
497 // TODO(vmiura): Tests for ContextState::RestoreGlobalState(). 496 // TODO(vmiura): Tests for ContextState::RestoreGlobalState().
498 497
499 } // namespace gles2 498 } // namespace gles2
500 } // namespace gpu 499 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698