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

Side by Side Diff: cc/test/test_web_graphics_context_3d.h

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « cc/test/render_pass_test_common.cc ('k') | cc/test/test_web_graphics_context_3d.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 void set_test_support(TestContextSupport* test_support) { 366 void set_test_support(TestContextSupport* test_support) {
367 test_support_ = test_support; 367 test_support_ = test_support;
368 } 368 }
369 369
370 int width() const { return width_; } 370 int width() const { return width_; }
371 int height() const { return height_; } 371 int height() const { return height_; }
372 bool reshape_called() const { return reshape_called_; } 372 bool reshape_called() const { return reshape_called_; }
373 void clear_reshape_called() { reshape_called_ = false; } 373 void clear_reshape_called() { reshape_called_ = false; }
374 float scale_factor() const { return scale_factor_; } 374 float scale_factor() const { return scale_factor_; }
375 375
376 enum UpdateType { NO_UPDATE = 0, PREPARE_TEXTURE, POST_SUB_BUFFER }; 376 enum UpdateType {
377 NoUpdate = 0,
378 PrepareTexture,
379 PostSubBuffer
380 };
377 381
378 gfx::Rect update_rect() const { return update_rect_; } 382 gfx::Rect update_rect() const { return update_rect_; }
379 383
380 UpdateType last_update_type() { return last_update_type_; } 384 UpdateType last_update_type() { return last_update_type_; }
381 385
382 protected: 386 protected:
383 struct TextureTargets { 387 struct TextureTargets {
384 TextureTargets(); 388 TextureTargets();
385 ~TextureTargets(); 389 ~TextureTargets();
386 390
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 482
479 scoped_refptr<Namespace> namespace_; 483 scoped_refptr<Namespace> namespace_;
480 static Namespace* shared_namespace_; 484 static Namespace* shared_namespace_;
481 485
482 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 486 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
483 }; 487 };
484 488
485 } // namespace cc 489 } // namespace cc
486 490
487 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 491 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/test/render_pass_test_common.cc ('k') | cc/test/test_web_graphics_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698