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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h

Issue 2735853002: Offset scissor and viewport when using SetDrawRectangle on surface. (Closed)
Patch Set: remove flag Created 3 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 (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 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 static const char* kOutputVariable1NameESSL3; 630 static const char* kOutputVariable1NameESSL3;
631 631
632 // Use StrictMock to make 100% sure we know how GL will be called. 632 // Use StrictMock to make 100% sure we know how GL will be called.
633 std::unique_ptr<::testing::StrictMock<::gl::MockGLInterface>> gl_; 633 std::unique_ptr<::testing::StrictMock<::gl::MockGLInterface>> gl_;
634 scoped_refptr<gl::GLSurfaceStub> surface_; 634 scoped_refptr<gl::GLSurfaceStub> surface_;
635 scoped_refptr<GLContextMock> context_; 635 scoped_refptr<GLContextMock> context_;
636 std::unique_ptr<MockGLES2Decoder> mock_decoder_; 636 std::unique_ptr<MockGLES2Decoder> mock_decoder_;
637 std::unique_ptr<GLES2Decoder> decoder_; 637 std::unique_ptr<GLES2Decoder> decoder_;
638 MemoryTracker* memory_tracker_; 638 MemoryTracker* memory_tracker_;
639 639
640 bool surface_supports_draw_rectangle_ = false;
641
640 GLuint client_buffer_id_; 642 GLuint client_buffer_id_;
641 GLuint client_framebuffer_id_; 643 GLuint client_framebuffer_id_;
642 GLuint client_program_id_; 644 GLuint client_program_id_;
643 GLuint client_renderbuffer_id_; 645 GLuint client_renderbuffer_id_;
644 GLuint client_sampler_id_; 646 GLuint client_sampler_id_;
645 GLuint client_shader_id_; 647 GLuint client_shader_id_;
646 GLuint client_texture_id_; 648 GLuint client_texture_id_;
647 GLuint client_element_buffer_id_; 649 GLuint client_element_buffer_id_;
648 GLuint client_vertex_shader_id_; 650 GLuint client_vertex_shader_id_;
649 GLuint client_fragment_shader_id_; 651 GLuint client_fragment_shader_id_;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 if (arg[i] != array[i]) 786 if (arg[i] != array[i])
785 return false; 787 return false;
786 } 788 }
787 return true; 789 return true;
788 } 790 }
789 791
790 } // namespace gles2 792 } // namespace gles2
791 } // namespace gpu 793 } // namespace gpu
792 794
793 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 795 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_autogen.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698